[iOS] use_framework!
See original GitHub issueI’m trying to install the flipper pod in a repository where swift pods are added to the project using the use_framework!
option.
Unfortunately, this triggers an error that prevents the installation from completing successfully.
[!] The 'Pods-ProjectName' target has transitive dependencies that include static binaries:
(/path/to/Pods/CocoaLibEvent/lib/libevent.a,
/path/to/Pods/CocoaLibEvent/lib/libevent_core.a,
/path/to/Pods/CocoaLibEvent/lib/libevent_extra.a,
/path/to/Pods/CocoaLibEvent/lib/libevent_pthreads.a,
/path/to/Pods/OpenSSL-Static/lib-ios/libcrypto.a, and
/path/to/Pods/OpenSSL-Static/lib-ios/libssl.a)
I cannot remove that option for some reasons. The most important one is a bug in Cocoapods https://github.com/CocoaPods/CocoaPods/issues/7585
Since all the involved pods come from flipper, Is there something that we can do about it?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Why do we use use_frameworks! in CocoaPods?
use_frameworks! tells CocoaPods that you want to use Frameworks instead of Static Libraries. Since Swift does not support Static Libraries you have to...
Read more >Flipper integration with cocoapod use_frameworks ... - GitHub
I want to use Flipper in a project that have mix of swift and objective c. I followed all the steps mentioned in...
Read more >Link Firebase dependencies statically or dynamically - Google
Beginning with CocoaPods 1.9.0 and Firebase 7, you can choose whether your Firebase dependencies are built as static or dynamic frameworks.
Read more >Mixing static and dynamic linking in CocoaPods - Medium
By default, CocoaPods will build pods as static libraries and the use_frameworks! attribute can be used to configure all pods in a target...
Read more >Technical Note TN2435: Embedding Frameworks In An App
This tech note is for app developers on macOS, iOS, watchOS, and tvOS who are modularizing their code into frameworks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried the following
It successfully generated the project and even the sample app built.
CocoaPods version 1.6.1
Try it out and feel free to open the issue, if it didn’t work.
Ok after playing around some more I have included this code in my Podfile and this works -
This will cause Pods to build the pods in the array as static and the others dynamic frameworks