gpt4 book ai didi

iphone - 文件中缺少所需的架构 armv7?

转载 作者:太空狗 更新时间:2023-10-30 03:12:08 26 4
gpt4 key购买 nike

我不断收到此警告和错误任何人都可以帮忙吗?

    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms       /iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks//SystemConfiguration.framework/SystemConfiguration, missing required architecture armv7 in file
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[Reachability reachabilityWithAddress:] in Reachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[Reachability reachabilityWithHostName:] in Reachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[Reachability stopNotifier] in Reachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilitySetCallback", referenced from:
-[Reachability startNotifier] in Reachability.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[Reachability connectionRequired] in Reachability.o
-[Reachability currentReachabilityStatus] in Reachability.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我的应用程序在模拟器中运行良好,我只是在为手机构建时才明白这一点。

最佳答案

您需要链接到 SystemConfiguration 框架。在 Xcode 的项目导航器中选择您的项目,选择您的应用程序目标,然后选择 Build Phases 选项卡。在 Link Binary With Libraries 下,单击“+”按钮并选择 SystemConfiguration.framework。

您可能需要以相同的方式添加其他框架依赖项,但添加 SystemConfiguration 可以为我修复相同的错误。

预计到达时间:我直接跳到错误处,没有看到粘贴顶部的 ld 警告。如果您已经链接到 SystemConfiguration,可以尝试删除并重新添加它,如果其他所有方法都失败,请更新 Xcode。最新版本肯定具有正确的架构,所以在我看来,要么是您的项目在错误的地方查找,要么是框架本身有问题。

关于iphone - 文件中缺少所需的架构 armv7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10347882/

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