flipper
flipper copied to clipboard
[iOS] ld: symbol(s) not found for architecture arm64
🐛 Bug Report
d: warning: Could not find or use auto-linked framework 'CoreAudioTypes'
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FlipperClient", referenced from:
objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
To Reproduce
- Xcode -> Product -> Destination -> Any iOS Device (arm64)
- Xcode -> Product -> Archive
Environment
- react-native: 0.72.6
- react-native-flipper: 0.212.0
Workaround solution
Exclude react-native-flipper
using a react-native.config.js
module.exports = {
dependencies: {
'react-native-flipper': {
platforms: {
ios: null,
},
},
},
};
Any update on this ?
Hi, Any update on this?
Usually this happens, when you have multiple configurations like Default ones (Debug, Release) and custom ones like StagingDebug/StagingRelease etc.
You need to define those in the flipper_config too. https://fbflipper.com/docs/getting-started/react-native/
Fix the issue use below pattern of default flipper_config
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug", "StagingDebug", "StagingRelease", "Release"])
Please tell me how to solve this problem?