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