XCode 7.3.1 - 未找到架构arm64的符号

时间:2016-06-17 15:44:35

标签: ios linker-errors sharekit

我正在尝试将ShareKit集成到我的iOS项目中。我已经在项目中添加了一些额外的框架(例如SystemConfiguration.framework),但在链接时我总是遇到同样的错误:

  "_SecItemUpdate", referenced from:


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


  "_kSecValueData", referenced from:


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


  "_kSecAttrLabel", referenced from:


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


  "_SecItemDelete", referenced from:


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_SecItemAdd", referenced from:


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


  "_kSecAttrAccount", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_kSecAttrService", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:


      objc-class-ref in SHK.o


      ltmp1 in SHKMail.o


      objc-class-ref in SHKMail.o


      l_OBJC_$_CATEGORY_MFMailComposeViewController_$_SHK in SHKMail.o


  "_kSecClassGenericPassword", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_kSecReturnData", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_kSecClass", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_SecItemCopyMatching", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_SCNetworkReachabilitySetCallback", referenced from:


      -[Reachability startNotifier] in Reachability.o


  "_SCNetworkReachabilityGetFlags", referenced from:


      -[Reachability connectionRequired] in Reachability.o


      -[Reachability currentReachabilityStatus] in Reachability.o


  "_SCNetworkReachabilityCreateWithAddress", referenced from:


      +[Reachability reachabilityWithAddress:] in Reachability.o


  "_SCNetworkReachabilityCreateWithName", referenced from:


      +[Reachability reachabilityWithHostName:] in Reachability.o


  "_kSecReturnAttributes", referenced from:


      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o


      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o


  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:


      -[Reachability startNotifier] in Reachability.o


  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:


      -[Reachability stopNotifier] in Reachability.o


ld: symbol(s) not found for architecture arm64


clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here是我添加所有其他框架的快照。我的项目设置可能有什么问题?任何建议都将非常感谢!

1 个答案:

答案 0 :(得分:0)

遇到同样的问题。我认为微信中的开发人员很糟糕。他们从未让他们的样本发挥作用。

要解决此问题,您需要将Security.framework添加到项目中。