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

Apply Xcode 11 XCTUnwrap fix to library and framework targets. #9500

Merged
merged 1 commit into from Jan 29, 2020

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Jan 21, 2020

See https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes

Integration specs: CocoaPods/cocoapods-integration-specs#266

This fixes it for both user targets that have this issue and fixes also for pod targets.

@dnkoutso dnkoutso added this to the 1.9.0 milestone Jan 21, 2020
@@ -13,13 +13,18 @@ def pod_target(spec, target_definition)
end

before do
@target_definition = fixture_target_definition
project_path = SpecHelper.create_sample_app_copy_from_fixture('SampleProject')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test setup was not using an actual project to the aggregate target. Now it does.

@@ -190,7 +195,7 @@ def pod_target(spec, target_definition)
end

it 'links the pod targets with the aggregate target' do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include '-l"BananaLib-Pods"'
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include '-l"BananaLib-Pods-SampleProject"'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is correct since we are now integrating on a real project and a real user target.

lib/cocoapods/target/build_settings.rb Outdated Show resolved Hide resolved
lib/cocoapods/target/build_settings.rb Outdated Show resolved Hide resolved
lib/cocoapods/target/build_settings.rb Outdated Show resolved Hide resolved
lib/cocoapods/target/build_settings.rb Outdated Show resolved Hide resolved
@dnkoutso dnkoutso changed the title Apply Xcode 11 XCTUnwrap fix to library and framwork targets. Apply Xcode 11 XCTUnwrap fix to library and framework targets. Jan 23, 2020
@dnkoutso dnkoutso force-pushed the xctunwrap_fix branch 2 times, most recently from 02ef6cc to d2b5d91 Compare January 24, 2020 00:14
@dnkoutso dnkoutso force-pushed the xctunwrap_fix branch 3 times, most recently from ac1072e to 67ac0b9 Compare January 28, 2020 05:59
@dnkoutso dnkoutso merged commit 779fe2f into CocoaPods:1-9-stable Jan 29, 2020
@dnkoutso dnkoutso deleted the xctunwrap_fix branch January 29, 2020 03:06
@dnkoutso dnkoutso restored the xctunwrap_fix branch January 29, 2020 03:06
@dnkoutso dnkoutso deleted the xctunwrap_fix branch January 29, 2020 03:06
@dnkoutso dnkoutso restored the xctunwrap_fix branch January 29, 2020 03:06
@dnkoutso dnkoutso deleted the xctunwrap_fix branch January 29, 2020 03:06
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

3 participants