1
我試圖建立和設備中使用命令行(iPhone)測試:xcodebuild:錯誤:無法構建工作區。理由:只建設備不能用於運行此目標
xcodebuild \
-workspace MyApp.xcworkspace \
-scheme MyApp \
-destination 'generic/platform=iOS,id=iPhoneUUID' \
clean test
但我發現了這個錯誤:
xcodebuild: error: Failed to build workspace MyApp with scheme MyApp.
Reason: A build only device cannot be used to run this target.
你們誰都知道我爲什麼會得到這個錯誤?
我會很感激任何幫助。
你有沒有試過這種[文章](https://stackoverflow.com/a/36463590/1724845) – Mina
難道你得到它的工作? –
@SvenDriemecker,是的,謝謝你的幫助 – user2924482