2

I'm using realm in my react-native project: https://github.com/kdnakt/pixelarn

After running ncu -u on my Mac to update react-native-elements to 1.0.0 and realm to 2.23.0, react-native run-ios would not start my app and I'm getting the following error:

  realm::jsc::ObjectWrap<realm::js::CollectionClass<realm::jsc::Types> >::create_class() in libRealmReact.a(jsc_init.o)
  ...
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  ** BUILD FAILED **

I saw some Github issues and tried rm -rf ~/Library/Developer/Xcode/DerivedData/ and rm -rf ios/build/ in my project directory, but still failing ... how can I start my react native app with react-native run-ios?

1 Answers1

1

There was some modifications after upgrade to react native 0.58.5 and above versions.

Xcode Archive build failed with react native project

Try to manually link the JavaScriptCore.framework in "Link Binary With Libraries". I had the same problem and it work for me.

Image