Realm-js: Build error from undefined symbols

Created on 17 May 2017  路  3Comments  路  Source: realm/realm-js

Not sure why I'm getting this error suddenly. Seems like the library isn't linking CocoaLumberjack but I'm not sure. Has anyone had this issue before?

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_DDLog", referenced from:
      objc-class-ref in libRealmReact.a(GCDWebServerMultiPartFormRequest.o)
      objc-class-ref in libRealmReact.a(GCDWebServerFileResponse.o)
      objc-class-ref in libRealmReact.a(GCDWebServerConnection.o)
      objc-class-ref in libRealmReact.a(GCDWebServerRequest.o)
      objc-class-ref in libRealmReact.a(GCDWebServer.o)
      objc-class-ref in libRealmReact.a(GCDWebServerFunctions.o)
ld: symbol(s) not found for architecture x86_64

I am on realm: 1.3.0

Most helpful comment

Few things that may help:

  1. Make sure JavaScriptCore.framework is added to "Link Binary With Libraries" (https://stackoverflow.com/questions/54515175/undefined-symbols-for-architecture-arm64-jsclasscreate)
  2. Product > Clean Build Folder
  3. Remove project's DerivedData (File > Project Settings > Open DerivedData location)
  4. Check that you are using a compatible React Native version with your Realm version - https://github.com/realm/realm-js/releases (Look for the last "Add support for React Native vX.XX")
  5. react-native unlink realm and react-native link realm

All 3 comments

Had to remove my DerivedData and build directories to fix this bug.

and i could not find out witch biuld directories, could you please tell me ?

Few things that may help:

  1. Make sure JavaScriptCore.framework is added to "Link Binary With Libraries" (https://stackoverflow.com/questions/54515175/undefined-symbols-for-architecture-arm64-jsclasscreate)
  2. Product > Clean Build Folder
  3. Remove project's DerivedData (File > Project Settings > Open DerivedData location)
  4. Check that you are using a compatible React Native version with your Realm version - https://github.com/realm/realm-js/releases (Look for the last "Add support for React Native vX.XX")
  5. react-native unlink realm and react-native link realm
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MihaelIsaev picture MihaelIsaev  路  3Comments

kontinuity picture kontinuity  路  3Comments

matt2legit picture matt2legit  路  3Comments

fever324 picture fever324  路  4Comments

jmartindivmedianet picture jmartindivmedianet  路  3Comments