1
升级到Xcode 7后,Xcode无法在模拟器上运行测试。Xcode 7:Xcode无法运行使用选定的设备
$ xcodebuild test -sdk iphonesimulator -scheme MyProject
Build settings from command line:
SDKROOT = iphonesimulator9.0
xcodebuild: error: Failed to build project MyProject with scheme MyProject.
Reason: Xcode cannot run using the selected device.
该问题在Travis CI和詹金斯转载。当我在本地机器上运行xcodebuild test
时,它工作正常。
追加'-destination'后仍然失败 – Quanlong
同样的错误?你为'xcodebuild -version'得到了什么 – James