Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antFrancon opened this issue Jul 16, 2022 · 1 comment
Open

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

antFrancon opened this issue Jul 16, 2022 · 1 comment

Comments

@antFrancon
Copy link

antFrancon commented Jul 16, 2022

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.

@juanjdiazjd
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants