Skip to content

Kddimitrov/fix add framework #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2019
Merged

Conversation

KristianDD
Copy link

@KristianDD KristianDD commented Apr 3, 2019

In previous implementation adding same SDK framework to two different targets, would result in only one target with the framework. The other one would have been skipped.

Now we check on every level of adding the framework (adding file reference, adding to source build phase, adding to copy files phase - embed) if we are going to create duplicates and if not we add the record.

Breaking change: If framework was already added we will return the existing PBXBuildFile reference instead of false.

@cla-bot cla-bot bot added the cla: yes label Apr 3, 2019
@ghost ghost assigned KristianDD Apr 3, 2019
@ghost ghost added new PR and removed cla: yes labels Apr 3, 2019
file.fileRef = key;
} else {
this.addToPbxFileReferenceSection(file); // PBXFileReference
this.addToFrameworksPbxGroup(file); // PBXGroup
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need this as well

this.addToPbxBuildFileSection(file);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to do that if we won't add it to the FrameworksBuildPhase.

@KristianDD KristianDD merged commit 2c88692 into master Apr 11, 2019
@KristianDD KristianDD deleted the kddimitrov/fix-add-framework branch April 11, 2019 12:03
@ghost ghost removed the new PR label Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants