简体   繁体   English

没有要编译的体系结构(ARCHS=arm6 arm7,VALID_ARCHS=armv7)

[英]No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7)

I am constantly getting below error while building app:我在构建应用程序时不断遇到错误:

No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7).

I tried adding arm6 arm7 to architecture but didn't work.我尝试将arm6 arm7添加到架构中,但没有成功。 I also tried just arm6 and arm7 , but still not.我也试过arm6arm7 ,但还是不行。

Also, I'm setting deployment target to 4.3 iPhone .另外,我将部署目标设置为4.3 iPhone I have Xcode version 4.3.1 .我有 Xcode 版本4.3.1

Please help!请帮忙!

You must take two steps:你必须采取两个步骤:

  • Go to Project Target > Build Settings > Architectures Delete whatever you see there, and then add these rows one by one: Go 到Project Target > Build Settings > Architectures删除你在那里看到的任何内容,然后一一添加这些行:

    armv6 armv7 armv6 armv7

There are no 'save' buttons there, so what I do, is adding another blank row, pressing enter, removing it, and then clicking out somewhere else, so that I make sure I have both of them added:那里没有“保存”按钮,所以我所做的是添加另一个空白行,按回车键,将其删除,然后单击其他地方,这样我就可以确保我已经添加了它们:

在此处输入图像描述

  • Now go to the AppName-Info.plist file, and look for the key "Require device capabilities" and delete it all.现在 go 到 AppName-Info.plist 文件,找到“Require device capabilities”键并将其全部删除。

Now it's done.现在完成了。

set "Build Active Architecture Only" = NO this worked for me after upgrading an old project to xcode5 set "Build Active Architecture Only" = NO 这在将旧项目升级到 xcode5 后对我有用

That works fine for me:这对我来说很好:

Set architectures to " Standard (armv7,armv7s) " and after set manually Valid architectures to armv7 armv7s体系结构设置为“ Standard (armv7,armv7s) ”,然后手动将Valid architectures设置为armv7 armv7s

在此处输入图像描述

Not arm6 and arm7, try by adding armv6 and armv7 as architectures.不是 arm6 和 arm7,尝试添加 armv6 和 armv7 作为体系结构。

Add architectures only armv7.仅添加架构 armv7。 Remove armv6 then try it.删除 armv6 然后尝试它。

I am using the latest Xcode and iPhone5.我用的是最新的Xcode和iPhone5。 I had it set to armv7s and armv7.我把它设置为 armv7s 和 armv7。 It took care of my issue which was the No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7) error.它解决了我的问题,即No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)错误。

To include 64 bit: Set architectures to "$(ARCHS_STANDARD_32_64_BIT)" and after set manually Valid architectures to armv7 arm64 .要包含 64 位:将体系结构设置为"$(ARCHS_STANDARD_32_64_BIT)" ,然后手动将有效体系结构设置为armv7 arm64 My Xcode version was 5.1.我的 Xcode 版本是 5.1。 Base SDK was iOS 7.1 Deployment target was 6.0.基地 SDK 是 iOS 7.1 部署目标是 6.0。

In another setting configuration: Set architectures to "$(ARCHS_STANDARD)" and after set manually valid architectures to armv7 arm64 .在另一个设置配置中:将架构设置为"$(ARCHS_STANDARD)" ,然后将手动有效架构设置为armv7 arm64 My Xcode version was 6.2.我的 Xcode 版本是 6.2。 Base SDK was iOS 8.2 Deployment target was 6.0.基地 SDK 是 iOS 8.2 部署目标是 6.0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有要编译的架构(archs = valid_archs = armv7 armv7s):OS 10.8.3 ios 6.1.3 - No architectures to compile for (archs= valid_archs=armv7 armv7s): OS 10.8.3 ios 6.1.3 iPhone 5S特定错误:没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = arm64,VALID_ARCHS = armv7 armv7s) - iPhone 5S Specific Error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s) 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = armv7,VALID_ARCHS = armv6 i386) - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386) AVFoundation函数在arm6 / arm7中未定义 - AVFoundation functions undefined in arm6/arm7 警告:iPhone应用程序应包含armv6架构(当前ARCHS =“armv7”) - warning: iPhone apps should include an armv6 architecture (current ARCHS = “armv7”) Xcode 错误 - 警告:所有应用程序都应包含 armv7 架构(当前 ARCHS =“”) - Error on Xcode - Warning: all apps should include an armv7 architecture (current ARCHS = "") Lipo不为arm64,armv7创建 - Lipo in not creating for arm64, armv7 如何在iphone通用(arm6 / arm7)构建过程中定位特定的弓 - How to target specific arch during iphone universal(arm6/arm7) build 在Armv7,Arv7和arm64中使用Linphone - Use Linphone in Armv7s, Armv7 and arm64 iOS:如何确定CPU类型,例如A4或A5,或指令集架构arm6或arm7? - iOS: How to ascertain the CPU type, e.g. A4 or A5, or instruction set architecture arm6 or arm7?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM