react-native-mmkv-storage icon indicating copy to clipboard operation
react-native-mmkv-storage copied to clipboard

[Bug][IOS] Undefined symbols for architecture x86_64

Open antFrancon opened this issue 2 years ago • 1 comments

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:

  1. Add both @react-native-firebase/app and react-native-mmkv-storage latest versions to your project
  2. Add use_frameworks! to your Podfile
  3. Run pod install inside ios folder
  4. Run npx react-native run-ios
  5. 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.

antFrancon avatar Jul 16 '22 10:07 antFrancon

replace with use_frameworks! :linkage => :static and it works

juanjdiazjd avatar Oct 15 '22 21:10 juanjdiazjd