Flipper integration with cocoapod use_frameworks! cannot compile
See original GitHub issue🐛 Bug Report
My ios swift project uses several dynamics frameworks so use_frameworks!
is mandatory. Unfortunately the official steps here doesn’t seem to be working.
I tried to debug this but this happens even in an empty project, where the only pods are Flipper itself.
Any help or suggestion to fix this issue? Thanks in advance.
To Reproduce
Here’s a sample project: https://github.com/andikapratama/flipper_use_framework_example
run pod install
open the workspace project and build.
compile will fail
Environment
MacOS Big Sur 11.1 XCode 12.5 Cocoapod 1.10.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:22
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Adding Flipper to Generic iOS Apps
This is done to overcome a bug with Xcode 11 which fails to compile Swift code when bitcode is enabled. Flipper transitively depends...
Read more >swift - react-native-maps iOS build issues when using ...
To be able to build the project with react-native-maps and use_frameworks as described in the question I had to fork the react-native-maps ...
Read more >target has transitive dependencies that include statically ...
CocoaPods ' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) ...
Read more >Troubleshooting - Bouncer Docs
ld: warning: Could not find auto-linked library 'swiftFoundation' · error: Failed to build iOS project. We ran "xcodebuild" command but it exited with...
Read more >Expo Application Services (EAS)
EAS Build - iOS install pods error: undefined method `search' for "https://cdn.cocoapods.org/":String · Command. /usr/local/lib/ruby/gems/2.7.
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 Free
Top 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
Hello folks. I encountered this issue and I tried a few things. There is one thing that I tried and it fixed the problem. I am no expert on cocoapods or flipper, but I got it build by just adding
Flipper-Fmt
to the$static_framework
.It is yet to know how this works out and I am in a my-code-works-but-I-dunno-why situation. If you are a cocoapods expert please help me digging a bit.
cc @lblasa any idea why
use_frameworks!
causes issues? Adding it toiOS/Sample/Podfile
indeed results in[!] The 'Pods-Sample' target has transitive dependencies that include statically linked binaries: (Flipper-Boost-iOSX and Flipper-RSocket)