没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=armv7 armv7s) [英] No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)
问题描述
在 Xcode 中运行是正确的,但是当我想使用命令行时$/usr/bin/xcodebuild -scheme projectA -workspace projectA.xcworkspace -configuration 调试干净构建
Running in Xcode is correctly, but when I want to use command line with $ /usr/bin/xcodebuild -scheme projectA -workspace projectA.xcworkspace -configuration Debug clean build
并提出以下内容.
=== BUILD NATIVE TARGET projectA OF PROJECT projectA WITH CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s).
在构建设置中:
- 架构:标准(armv7、armv7s)
- 基础 SDK:最新的 iOS (iOS 6.0)
- 仅构建活动架构:调试是,发布否
- 有效架构:armv7 armv7s
在我更改 Build Active Architecture Only = No
之后,构建成功.
After I change Build Active Architecture Only = No
, then the build was BUILD SUCCEEDED.
这种情况的建议设置是什么,在推荐行模式下建立成功?谢谢.
What is the suggestion setting for this situation, to build success under commend line mode? Thanks.
推荐答案
您可以设置仅构建活动架构"和拱门"来自命令行本身的值.我们设置ARCHS=armv7 armv7s"ONLY_ACTIVE_ARCH=否.
You can set the "Build Active Architecture Only" and "Archs" values from command line itself. We set ARCHS="armv7 armv7s" ONLY_ACTIVE_ARCH=NO.
例如
/usr/bin/xcodebuild ARCHS=armv7 armv7s"ONLY_ACTIVE_ARCH=NO -workspace -scheme ......
/usr/bin/xcodebuild ARCHS="armv7 armv7s" ONLY_ACTIVE_ARCH=NO -workspace -scheme ......
这将使您无需手动更改项目设置中的值.
This will free you from manually changing the values in your project settings.
这篇关于没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=armv7 armv7s)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!