迁移Wikitude插件3.3后Apple Mach-O链接器错误

时间:2014-04-24 15:39:26

标签: ios cordova

我在Cordova项目上迁移Wikitude Plugin 3.3后出现了一些错误。这些是我的错误:

Undefined symbols for architecture armv7s:
  "_kSecRandomDefault", referenced from:
      +[FBCrypto randomBytes:] in FacebookSDK-3.5.2-Release.a(FBCrypto.o)
      -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK-3.5.2-Release.a(FBCrypto.o)
  "_SCNetworkReachabilityGetFlags", referenced from:
      -[CDVReachability connectionRequired] in CDVReachability.o
      -[CDVReachability currentReachabilityStatus] in CDVReachability.o
  "_SecRandomCopyBytes", referenced from:
      +[FBCrypto randomBytes:] in FacebookSDK-3.5.2-Release.a(FBCrypto.o)
      -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK-3.5.2-Release.a(FBCrypto.o)
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
      +[CDVReachability reachabilityWithAddress:] in CDVReachability.o
  "_SCNetworkReachabilityCreateWithName", referenced from:
      +[CDVReachability reachabilityWithHostName:] in CDVReachability.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[CDVReachability startNotifier] in CDVReachability.o
   "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[CDVReachability stopNotifier] in CDVReachability.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[CDVReachability startNotifier] in CDVReachability.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不确定为什么会这样?我已经尝试更改"其他链接器标志"。我尝试了其他几个解决方案请帮忙。 :/提前谢谢。

1 个答案:

答案 0 :(得分:0)

确保您在构建阶段与库的链接二进制文件如下所示。

enter image description here