gpt4 book ai didi

ios - 更新到 IOS 9 后架构 armv7 的 undefined symbol

转载 作者:行者123 更新时间:2023-11-29 01:38:42 25 4
gpt4 key购买 nike

自从为 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 的最新版本。查看build设置并删除对旧版本框架的任何引用。在互联网上搜索该问题的任何其他引用,唯一找到的是这里 Undefined symbols for architecture armv7我已经检查过了,但是没有解决我的问题。

我确实注意到 libz.dylib 框架在更新后丢失了,所以尝试在/usr/lib/中搜索并手动添加框架,这没有用,我还添加了新的 libz.tbd 文件进入框架列表但是这也没有解决问题。

谁能建议这个问题的正确解决方案?

最佳答案

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

关于ios - 更新到 IOS 9 后架构 armv7 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32678383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com