自从为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”的框架
添加完所有错误后,所有错误都会解决,并且应用程序加载不会出现问题。