Skip to content
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

Fix linking of vendored libraries in pod targets #8455

Merged

Conversation

Westacular
Copy link
Contributor

@Westacular Westacular commented Jan 26, 2019

Closes 8453.

Also, updates unit tests to avoid this in future.

Specifically: the build_settings unit tests should have caught this issue, however, the banana-lib test project that tested the relevant functionality had both Bananalib.framework and libBananalib.a, which both have the same name when stripped down, creating an ambiguity.

I've updated the banana-lib project to instead have BananaFramework.framework and libBananaStaticLib.a, and updated all the unit tests in accordance with the new names.

I've verified that the relevant build_setting test now fails without the fix, and passes with it.

One curiosity was that the 'detects duplicate library names' test was failing following the rename, and not raising a warning as expected. Not entirely sure why that is... in any case, I've modified that test (based on the example set in 'detects duplicate framework names') and it now passes again.

CHANGELOG.md Outdated Show resolved Hide resolved
@dnkoutso dnkoutso added this to the 1.6.0 milestone Jan 26, 2019
Copy link
Member

@amorde amorde left a comment

Choose a reason for hiding this comment

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

Although would like the function for library naming its not a blocker 👍

lib/cocoapods/target/build_settings.rb Outdated Show resolved Hide resolved
@dnkoutso dnkoutso merged commit 47d4078 into CocoaPods:1-6-stable Jan 28, 2019
@dnkoutso
Copy link
Contributor

thanks!

dnkoutso added a commit to dnkoutso/CocoaPods that referenced this pull request Jan 28, 2019
* 1-6-stable:
  Update fourflusher version
  Fix linking of vendored libraries in pod targets (CocoaPods#8455)
dnkoutso added a commit to dnkoutso/CocoaPods that referenced this pull request Jan 28, 2019
* 1-6-stable:
  Update fourflusher version
  Fix linking of vendored libraries in pod targets (CocoaPods#8455)
dnkoutso added a commit to dnkoutso/CocoaPods that referenced this pull request Jan 28, 2019
* 1-6-stable:
  Update fourflusher version
  Fix linking of vendored libraries in pod targets (CocoaPods#8455)
dnkoutso added a commit to dnkoutso/CocoaPods that referenced this pull request Jan 28, 2019
* 1-6-stable:
  Update fourflusher version
  Fix linking of vendored libraries in pod targets (CocoaPods#8455)
dnkoutso added a commit to dnkoutso/CocoaPods that referenced this pull request Jan 28, 2019
* 1-6-stable:
  Update fourflusher version
  Fix linking of vendored libraries in pod targets (CocoaPods#8455)
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.

None yet

4 participants