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

Undefined symbols for architecture armv7 after update to IOS 9

自从为 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 文件添加到框架列表中,但这也没有解决问题。

任何人都可以提出解决此问题的正确方法吗?

我发现这个问题的答案是缺少一个名为 "SystemConfiguration.framework" 的框架 添加后,所有错误都已解决,应用程序加载也没有问题。