flipper: Flipper integration with cocoapod use_frameworks! cannot compile
🐛 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
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 27
- Comments: 16 (5 by maintainers)
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-Fmtto 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.
I can’t believe this issue is still open. React Native team knows it’s an issue but just says to disable flipper, says that Flipper team needs to fix it. With hermes you pretty much need Flipper now. Why isn’t this a higher priority?
cc @lblasa any idea why
use_frameworks!causes issues? Adding it toiOS/Sample/Podfileindeed results in[!] The 'Pods-Sample' target has transitive dependencies that include statically linked binaries: (Flipper-Boost-iOSX and Flipper-RSocket)It seems that
Flipper-Boost-iOSXhas not been fixed yet.Please help us solve this problem. Our develop team thinks it’s very important and useful. 😭😭😭
0.98.0 still this error
@martintreurnicht FYI, I know it doesn’t fix the immediate issue, the intention is for Flipper integration not to be on by default in future and Hermes debugging to occur via Chrome DevTools (while the code still runs inside Hermes). More info here: https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0641-decoupling-flipper-from-react-native-core.md
Oh, I tried with Flipper latest version 127 and It’s worked, Maybe Flipper-folly has fixed it, 🥳 🥳 🥳 🥳 🥳
maybe help: https://github.com/facebook/flipper/issues/2548#issuecomment-903410710
I downgraded Flipper to 0.87.0 and installed Flipper-Folly by specifying local pod spec file then this problem was solved.
This is flipper part of my Podfile:
The local pod spec json file is :
In addition, do not use “use_modular_headers!” if you write “use_frameworks!” in Podfile.
I am also getting compile time errors if use "use_frameworks! ". I want to use Flipper in a project that have mix of swift and objective c. I followed all the steps mentioned in https://fbflipper.com/docs/getting-started/ios-native/
Xcode - 13.0 beta 4 Mac OS - Big Sur 11.5
Error 1- /Users/dipakpandey/Desktop/FlipperDemo/Pods/Target Support Files/Pods-FlipperDemo/Pods-FlipperDemo-dummy.m:1:9: while building module ‘Foundation’ imported from /Users/dipakpandey/Desktop/FlipperDemo/Pods/Target Support Files/Pods-FlipperDemo/Pods-FlipperDemo-dummy.m:1:
Error 2- /Users/dipakpandey/Desktop/FlipperDemo/Pods/Target Support Files/Pods-FlipperDemo/Pods-FlipperDemo-dummy.m:1:9: while building module ‘Foundation’ imported from /Users/dipakpandey/Desktop/FlipperDemo/Pods/Target Support Files/Pods-FlipperDemo/Pods-FlipperDemo-dummy.m:1:
It probably helps if you include the actual error you are getting. It also helps people searching for the error: