flipper
flipper copied to clipboard
[iOS] Build errors in a React Native app
🐛 Bug Report
I've a lot of these types of build errors if I integrate Flipper in my RN app:
- Could not build module 'Darwin'
- Redefinition of module 'fmt'
- Could not build module 'CoreFoundation'
I also found an issue in the React Native GitHub, but I think is somehow related to Flipper because if I comment the integration in the Podfile, the errors disappear
To Reproduce
- add flipper integration in Podfile
:flipper_configuration => ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled - launch 'pod install'
- Run the app in XCode
Environment
RN - 0.71.7 Flipper - 0.125.0
The same issue
I'm having the same problem
I resolved this by downgrade Xcode from 14.3 to 14.2, Hope can help.
@namhihi237 can you tell us what is the version of RN and flipper you are using?
Same issue
ios/Pods/Headers/Private/Flipper-Folly/folly/portability/GFlags.h:66:7: error: redefinition of 'FlagSaver'
class FlagSaver {};
^
In file included from ios/Pods/Flipper-Folly/folly/io/async/TimeoutManager.cpp:20:
In file included from ios/Pods/Headers/Public/Flipper-Glog/glog/logging.h:86:
/opt/homebrew/include/gflags/gflags.h:278:23: note: previous definition is here
class GFLAGS_DLL_DECL FlagSaver {
^
When trying to uninstall...
When unsetting the CPATH, which includes the libraries in homebrew, Flipper-Glog now complains.
So this confirms the previous error that Flipper-Folly uses a static library whereas Flipper-Glog is using a shared library.
CPATH=/opt/homebrew/include
unset CPATH
ios/Pods/Headers/Public/Flipper-Glog/glog/logging.h:86:10: fatal error: 'gflags/gflags.h' file not found
#include <gflags/gflags.h>
After trying many things, I decided to comment out this line, and the build succeeded.
same issue
same issue(2)
same issue(3) I thought use_framework! was the reason for this. It's not. Disabling the flipper was the only option.
same isssue in xcode 15 and react native 0.72.5
Same issue
Same issue
SAME ISSUE!
Same issue with xCode 15.0.1 and RN 0.72.7
Any news on this ?
same issue xcode 15.0.0 and RN 0.73.1
- Flipper (0.201.0):
- Flipper-Folly (~> 2.6)
working fine when comment this line flipper_configuration => flipper_config
Any update for it?
same issue xcode 15.0.0 and RN 0.73.1
- Flipper (0.201.0):
- Flipper-Folly (~> 2.6)
working fine when comment this line flipper_configuration => flipper_config
Can you share your pod file ?
- comment this line :flipper_configuration => flipper_config,
- cd ios
- pod install --repo-update
Same issue with XCode 15.4 and RN 0.73.6
same issue xcode 15.0.0 and RN 0.73.1
- Flipper (0.201.0):
- Flipper-Folly (~> 2.6)
working fine when comment this line flipper_configuration => flipper_config
Can you share your pod file ?
@Jashanpreet1998 may i know what is your xcode version?