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

Do not validate modular header dependencies for pre-built Swift pods. #10914

Merged
merged 1 commit into from Sep 2, 2021

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Sep 2, 2021

closes #10912

@dnkoutso dnkoutso added this to the 1.11.1 milestone Sep 2, 2021
@dnkoutso dnkoutso requested a review from amorde September 2, 2021 21:48
@@ -519,6 +520,29 @@ def create_validator(sandbox, podfile, lockfile)
@validator.pod_targets.find { |pt| pt.name == 'matryoshka' }.stubs(:should_build?).returns(false)
lambda { @validator.validate! }.should.not.raise
end

it 'does not raise when a pre built swift target depends upon a target that requires building' do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

verified I saw the same issue as reported without my code change.

project(fixture_path + 'SampleProject/SampleProject').to_s
platform :ios, '12.0'
install! 'cocoapods', :integrate_targets => false
pod 'VendoredSwiftFramework', :path => (fixture_path + 'prebuilt-swift-framework').to_s
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 a nice fixture of a pre-built swift framework that cocoapods 1.11.x now treats uses_swift? as true.

@dnkoutso dnkoutso merged commit bec507c into master Sep 2, 2021
@dnkoutso dnkoutso deleted the relax_module_validation branch September 2, 2021 22:07
@dnkoutso dnkoutso modified the milestones: 1.11.1, 1.11.2 Sep 13, 2021
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.

Pod install using cocoapods 1.11.0 fails with a does not define modules message
2 participants