我試圖用jenkins自動化我的iOS項目。 但是我遇到了我想用jenkins測試的項目的一個問題。單元測試iOS與Jenkins
該項目命名爲ttt
並且正在使用cocoapods,因此它也有一個名爲ttt
的工作區。
我跟着this教程。是
當我嘗試運行它,它會卡住就在這裏!
Going to invoke xcodebuild:, scheme: ttt, sdk: DEFAULT, workspace: ttt, configuration: Debug, clean: NO, archive:NO, symRoot: DEFAULT, configurationBuildDir: DEFAULT, codeSignIdentity: DEFAULT
[lbp-iOS] $ /usr/bin/xcodebuild -scheme ttt -workspace ttt.xcworkspace -configuration Debug build test -destination "platform=iOS Simulator,name=iPhone 6,OS=10.1"
當我從工作區字段中刪除ttt
我收到以下錯誤
Going to invoke xcodebuild:, scheme: ttt, sdk: DEFAULT, project: DEFAULT, configuration: Debug, clean: NO, archive:NO, symRoot: DEFAULT, configurationBuildDir: DEFAULT, codeSignIdentity: DEFAULT
[lbp-iOS] $ /usr/bin/xcodebuild -scheme ttt -configuration Debug build
xcodebuild: error: The project named "ttt" does not contain a scheme named "ttt". The "-list" option can be used to find the names of the schemes in the project.
Build step 'Xcode' marked build as failure
Recording test results
你是什麼意思「卡住」?它只是坐在那個'去調用xcodebuild ...'行永遠嗎? – kpsharp
@kpsharp是啊,它只是坐在那裏。我已經讓它跑了30分鐘,但它不會從這一點移動。我寧願看到一個錯誤,然後誠實地大聲笑 – NoSixties
那麼這可能是Xcode集成插件的問題。你可以聯繫他們試圖修復它。或者,您可以編寫bash腳本來運行與Xcode打包在一起的Xcode命令行工具,並將其作爲Jenkins計劃的一部分運行。 – kpsharp