更新到IOS 9后,架构armv7的未定义符号

时间:2015-09-20 10:38:42

标签: ios objective-c xcode armv7

自从更新我的IOS 9应用程序以来,这个问题已经开始发生,并让我发疯。 IOS 8.4.1中的应用程序没有问题

我首先列出了下面的问题以供参考,然后描述了我到目前为止所尝试的内容:

Ld /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard normal armv7
cd /Users/Chris/Documents/pulseguardproject
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Documents/pulseguardproject/sdk/dependencies -filelist /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard.LinkFileList -miphoneos-version-min=7.1 -dead_strip -all_load -lstdc++ -fobjc-arc -fobjc-link-runtime -lz -framework WFConnector -framework MessageUI -framework ExternalAccessory -framework MediaPlayer -framework AudioToolbox -framework AVFoundation -framework CoreBluetooth -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -Xlinker -dependency_info -Xlinker /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard_dependency_info.dat -o /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard

Undefined symbols for architecture armv7:
  "_SCNetworkReachabilityGetFlags", referenced from:
      -[WFAPIReachability isReachable] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability isReachableViaWWAN] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability isReachableViaWiFi] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability connectionRequired] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability isConnectionOnDemand] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability isInterventionRequired] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability reachabilityFlags] in WFConnector(WFAPIReachability.o)
      ...
  "_SCNetworkReachabilitySetDispatchQueue", referenced from:
      -[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
      -[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
      +[WFAPIReachability reachabilityWithAddress:] in WFConnector(WFAPIReachability.o)
  "_SCNetworkReachabilityCreateWithName", referenced from:
      +[WFAPIReachability reachabilityWithHostname:] in WFConnector(WFAPIReachability.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我到目前为止所尝试的内容:

将WFConnector框架更新为与IOS 9兼容的最新版本。 查看构建设置并删除对旧版本框架的任何引用。 在互联网上搜索了问题的任何其他参考,唯一找到的是Undefined symbols for architecture armv7,我已检查过但是没有解决我的问题。

我注意到自更新以来libz.dylib框架丢失了,所以尝试在/ usr / lib /中搜索并手动添加框架,这没有用,我还添加了新的libz.tbd文件然而,这也没有解决问题。

有人可以建议正确解决这个问题吗?

0 个答案:

没有答案