这
question是相关的,但没有解决我遇到的具体问题.
我在OS X 10.7.5下使用Xcode 4.6.3.
我只是为单个视图iOS应用程序创建了默认项目,并且没有对项目设置进行任何更改.当然,该项目使用Xcode为iOS模拟器构建.但是,当我尝试从命令行使用xcodebuild时,xcodebuild失败.
项目名称只是:temp
我试过了:
xcodebuild -scheme temp -sdk iphonesimulator6.1
这产生了结果:
Build settings from command line:
SDKROOT = iphonesimulator6.1
=== BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=i386).
** BUILD Failed **
The following build commands Failed:
Check dependencies
(1 failure)
基于其他SO问题,我试过:
xcodebuild ARCHS="armv7 armv7s" ONLY_ACTIVE_ARCH=NO -scheme temp -sdk iphonesimulator6.1
得到了类似的结果:
Build settings from command line:
ARCHS = armv7 armv7s
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator6.1
=== BUILD NATIVE TARGET temp OF PROJECT temp WITH CONFIGURATION Debug ===
Check dependencies
No architectures to compile for (ARCHS=armv7 armv7s,VALID_ARCHS=i386).
** BUILD Failed **
The following build commands Failed:
Check dependencies
(1 failure)
我需要执行什么xcodebuild命令才能使用xcodebuild构建?
谢谢.