将RN更新为0.18后,尝试构建项目时出现此错误。它来自此软件包:http://github.com/magus/react-native-facebook-login

错误说:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
      objc-class-ref in libRCTFBLogin.a(RCTFBLoginManager.o)
  "_OBJC_CLASS_$_FBSDKLoginButton", referenced from:
      objc-class-ref in libRCTFBLogin.a(RCTFBLogin.o)
  "_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
      objc-class-ref in libRCTFBLogin.a(RCTFBLoginManager.o)
ld: symbol(s) not found for architecture x86_64

我真的不知道这意味着什么,如果有人可以帮助我。

最佳答案

好,找出原因。 Facebook SDK框架位于我的项目树中,但未添加“as”框架(它们未出现在“Linked Frameworks and Libraries”中)。

07-26 01:30