8000 🌈 Fix embedding static frameworks in extensions while using `use_frameworks!` by mfiebig · Pull Request #8798 · CocoaPods/CocoaPods · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🌈 Fix embedding static frameworks in extensions while using use_frameworks! #8798

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

Conversation

mfiebig
Copy link
Contributor
@mfiebig mfiebig commented May 13, 2019

Motivation and Context

Using a framework within an extension results in cocoapods linking the framework to the main app target. If the framework is static this should not happen if the framework is only used within the extension.

Description

I added a unit test does not copy extension pod targets to host target, when use_frameworks! but contained pod is static to test the behaviour and changed the code accordingly.

I'm uncertain if the test is written appropriately and if the place for the fix is sufficient. Feedback is very welcome :)

@dnkoutso
Copy link
Contributor

@paulb777 care to take a look?

Copy link
Member
@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

LGTM

@dnkoutso
Copy link
Contributor

@mfiebig please point to 1-7-stable branch and update the CHANGELOG entry to point to this PR for your change.

@mfiebig mfiebig force-pushed the < 8000 span class=" css-truncate-target">mfiebig_static_frameworkes_in_extensions branch from 7d6aef3 to 4b8b209 Compare May 13, 2019 20:17
@mfiebig
Copy link
Contributor Author
mfiebig commented May 13, 2019

Thanks for your feedback and the awesome tool you built. I'm glad I can finally give something back 😃

I updated the PR to point to 1-7-stable. Let me know if I can improve it any further.

@dnkoutso
Copy link
Contributor

PR still pointing to master

@dnkoutso dnkoutso changed the base branch from master to 1-7-stable May 13, 2019 22:00
@dnkoutso
Copy link
Contributor

nm i changed it for you.

@dnkoutso dnkoutso added this to the 1.7.0 milestone May 13, 2019
end

target 'Today Extension' do
pod 'matryoshka', :path => (fixture_path + 'static-matryoshka').to_s
Copy link
Contributor

Choose a reason for hiding this comment

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

why does this need to be with :path?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see because its static_framework in that path.

@dnkoutso dnkoutso merged commit 8a7cfa5 into CocoaPods:1-7-stable May 15, 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.

3 participants
0