ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.59k stars 111 forks source link

[Bug][IOS] Undefined symbols for architecture x86_64 #270

Open antFrancon opened 2 years ago

antFrancon commented 2 years ago

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:

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.

juanjdiazjd commented 2 years ago

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