我有一個項目setuped在詹金斯應該在運行期間打開IOS模擬器,但詹金斯無法打開模擬器。詹金斯無法打開IOS模擬器
詹金斯在jenkins用戶中運行。
下面是什麼項目用途: - Java的行家基於項目 - 運行appium服務器 - appium啓動IOS模擬器 - 這一步失敗,下面的錯誤
[XCUITest] Error: Command 'osascript -e 'tell application "System Events" to count processes whose bundle identifier is "com.apple.iphonesimulator"'' exited with code 1
at ChildProcess.<anonymous> (../../lib/teen_process.js:92:19)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:897:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
{ Error: Command 'osascript -e 'tell application "System Events" to count processes whose bundle identifier is "com.apple.iphonesimulator"'' exited with code 1
at ChildProcess.<anonymous> (../../lib/teen_process.js:92:19)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:897:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
stdout: '',
stderr: '36:106: execution error: An error of type -610 has occurred. (-610)\n',
code: 1 }
我嘗試添加詹金斯用戶開發人員組並啓用DevToolsSecurity,但它不起作用。
您的Jenkins配置爲無頭用戶嗎?沒有密碼,bash環境等? –
看起來我們有相同(或至少非常相似)的問題。我將分享我在Appium討論中發佈的主題:https://discuss.appium.io/t/appium-tests-via-jenkins-simulator-not-boot-error-command-osascript-e-tell-application -system-events-to-count-processes-which-bundle-identifier-is-com-apple-iphonesimulator/19038 – Cindy
@KamilSzostakowski它作爲deamon運行。 jenkins用戶是sudoer,它確實需要環境變量 –