简体   繁体   English

没有要编译的架构(ARCHS = i386,VALID_ARCHS = arm64 armv7 armv7s)

[英]No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)

Preface: I did look at similar question s and none of the answers seemed to fix my problem. 前言:我确实看过类似的问题 ,但所有答案似乎都无法解决我的问题。

I am trying to build my xcode (version 5.1.1) project using: 我正在尝试使用以下方法构建我的xcode(版本5.1.1)项目:

xcodebuild clean build -sdk iphonesimulator7.0 -arch "armv7s" ONLY_ACTIVE_ARCH=NO , xcodebuild clean build -sdk iphonesimulator7.0 -arch "armv7s" ONLY_ACTIVE_ARCH=NO

when I run this I get: No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=i386 x86_64) as an error. 当我运行它时,我得到: No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=i386 x86_64)作为错误。 I tried the above command with all of the VALID_ARCHS (rm64 armv7 armv7s) as inputs. 我使用所有VALID_ARCHS(rm64 armv7 armv7s)作为输入尝试了上述命令。 So I then tried running this command: 因此,我然后尝试运行此命令:

xcodebuild clean build -sdk iphonesimulator7.0 -arch "i386" ONLY_ACTIVE_ARCH=NO

and I then get No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s) as an error. 然后我得到No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)作为错误。 I tried running the above command with all the other VALID_ARCHS (i386 x86_64) and no luck with that either. 我尝试将上述命令与所有其他VALID_ARCHS(i386 x86_64)一起运行,但也没有运气。 I don't know why these architecture errors are occurring. 我不知道为什么会发生这些体系结构错误。 I have cocoapods in my project, and the first answer in the link above didn't fix my issue. 我的项目中有cocoapods,上面链接中的第一个答案不能解决我的问题。

You can override your default variables: Try to use this: 您可以覆盖默认变量:尝试使用此方法:

xcodebuild clean build -sdk iphonesimulator7.0 -arch "i386" ONLY_ACTIVE_ARCH=NO VALID_ARCHS="i386 x86_64"

If you building for Simulator - always build for i386/x86_64. 如果要为Simulator构建-始终为i386 / x86_64构建。

Go to your project settings (not targets). 转到您的项目设置(不是目标)。 Then open Build Settings and add a value to Valid architectures : i386 然后打开“构建设置”并将值添加到“ 有效体系结构” :i386

暂无
暂无

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

相关问题 检查依赖项...没有要编译的体系结构(ARCHS = i386,VALID_ARCHS = arm64 armv7s armv7) - Check dependencies… No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7s armv7) 没有要编译的架构(ARCHS = armv7,armv7s,VALID_ARCHS = armv7 armv7s) - No architectures to compile for (ARCHS=armv7,armv7s, VALID_ARCHS=armv7 armv7s) Xcode 9没有要编译的体系结构(ARCHS = arm64,VALID_ARCHS = armv6 armv7) - Xcode 9 No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv6 armv7) 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) 没有要编译的架构 (ARCHS=, VALID_ARCHS=armv7 armv7s) - No architectures to compile for (ARCHS=, 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) 没有要编译的体系结构(ARCHS=arm6 arm7,VALID_ARCHS=armv7) - No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7) 无法为armv7进行编译,此处有效的体系结构为armv6,armv7和i386 - Cannot compile for armv7s here valid architectures are armv6, armv7 and i386 没有要编译的架构 (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 Xcode 12 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=arm64e armv7s arm64 arm7) - Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM