react-native-mmkv-storage
react-native-mmkv-storage copied to clipboard
[Bug][IOS] Undefined symbols for architecture x86_64
Describe the bug
I am not able to build my app anymore on IOS.
When running the project Xcode fails on step Linking react_native_mmkv_storage
with error:
❌ Undefined symbols for architecture x86_64
> Symbol: facebook::jsi::Value::Value(facebook::jsi::Runtime&, facebook::jsi::Value const&)
> Referenced from: facebook::jsi::detail::toValue(facebook::jsi::Runtime&, facebook::jsi::Value const&) in YeetJSIUtils.o
❌ ld: symbol(s) not found for architecture x86_64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
To Reproduce Steps to reproduce the behavior:
- Add both
@react-native-firebase/app
andreact-native-mmkv-storage
latest versions to your project - Add
use_frameworks!
to your Podfile - Run
pod install
inside ios folder - Run
npx react-native run-ios
- See error
Expected behavior Linking should be successful.
Platform Information:
- OS: [IOS]
- React Native Version [0.69.1]
- Library Version [0.7.6]
Additional context
The problem appears after upgrading react-native-firebase to v15.0.0 which requires to use use_frameworks!
in Podfile. I guess it is related in some ways.
replace with
use_frameworks! :linkage => :static
and it works