[英]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.