ios – 在构建应用程序目标时缺少文件XCTest中所需的体系结构armv7

ios – 在构建应用程序目标时缺少文件XCTest中所需的体系结构armv7,第1张

概述首先,我查看了所有其他搜索主题,没有应用或不起作用.例如,我很难让苹果不能使xctest与所有架构兼容. 在一个Xcode项目上工作,我随机开始在链接时遇到以下构建错误: Ld /Users/eallen/Library/Developer/Xcode/DerivedData/InVenueExperience-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermed 首先,我查看了所有其他搜索主题,没有应用或不起作用.例如,我很难让苹果不能使xctest与所有架构兼容.

在一个Xcode项目上工作,我随机开始在链接时遇到以下构建错误:

Ld /Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermediates/InVenueExperIEnce.build/DeBUG-iphoneos/InVenueExperIEnce.build/Objects-normal/armv7/InVenueExperIEnce normal armv7cd /Users/eallen/tmdev/ios/mivesetenv IPHONEOS_DEPLOYMENT_TARGET 7.0setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/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/iPhoneOS7.0.sdk -L/Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Products/DeBUG-iphoneos -L/Users/eallen/tmdev/ios/mive -L/Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermediates -F/Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Products/DeBUG-iphoneos -FFrameworks -FPods/Pixate/Framework/iOS -F/Applications/Xcode.app/Contents/Developer/library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/Developer/library/Frameworks -fileList /Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermediates/InVenueExperIEnce.build/DeBUG-iphoneos/InVenueExperIEnce.build/Objects-normal/armv7/InVenueExperIEnce.linkfileList -dead_strip -ObjC -lObjC -lxml2 -framework CoreGraphics -framework CoreText -framework MobileCoreServices -framework Pixate -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -fprofile-arcs -ftest-coverage -miphoneos-version-min=7.0 -lPods -framework QuartzCore -framework CoreText -framework CoreGraphics -framework CoreData -framework UIKit -framework Foundation -framework Crashlytics -Xlinker -dependency_info -Xlinker /Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermediates/InVenueExperIEnce.build/DeBUG-iphoneos/InVenueExperIEnce.build/Objects-normal/armv7/InVenueExperIEnce_dependency_info.dat -o /Users/eallen/library/Developer/Xcode/DerivedData/InVenueExperIEnce-fgszkxctprmkuvbvwzgprcuveheo/Build/Intermediates/InVenueExperIEnce.build/DeBUG-iphoneos/InVenueExperIEnce.build/Objects-normal/armv7/InVenueExperIEnceld: in '/Applications/Xcode.app/Contents/Developer/library/Frameworks/XCTest.framework/XCTest',missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/library/Frameworks/XCTest.framework/XCTest (2 slices) for architecture armv7clang: error: linker command Failed with exit code 1 (use -v to see invocation)

这一切都是在尝试构建我的应用程序目标而不是我的测试目标时.进一步说明:

>我没有在应用程序目标的构建设置中链接XCTest
>我正在建设,而不是测试这个特定的目标
>我的构建设置中都有 – >架构|有效架构“标准架构(armv7,armv7s).
>这只发生在我为iOS设备而不是模拟器构建时…我认为这是因为为模拟器构建只尝试i386架构?

说实话,我不知道为什么链接器甚至试图在这种情况下尝试链接XCTest …我甚至修改了方案以删除所有测试,虽然我没有尝试对目标进行测试.

请随时问我任何其他问题.

解决方法 你可能会遇到与我一样简单但令人沮丧的问题.这是一个方案设置: 单击工具栏中的项目方案(播放/停止按钮右侧),然后从d出窗口中选择“编辑”.在左侧的“构建”项下,确保您的测试目标仅选中“测试”. 总结

以上是内存溢出为你收集整理的ios – 在构建应用程序目标时缺少文件XCTest中所需的体系结构armv7全部内容,希望文章能够帮你解决ios – 在构建应用程序目标时缺少文件XCTest中所需的体系结构armv7所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1047395.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存