-
Notifications
You must be signed in to change notification settings - Fork 2.7k
🌈 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
🌈 Fix embedding static frameworks in extensions while using use_frameworks!
#8798
Conversation
@paulb777 care to take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mfiebig please point to |
7d6aef3
to
4b8b209
Compare
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 |
PR still pointing to |
nm i changed it for you. |
end | ||
|
||
target 'Today Extension' do | ||
pod 'matryoshka', :path => (fixture_path + 'static-matryoshka').to_s |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
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 :)