Ich habe ein Projekt in Jenkins eingerichtet, das den IOS-Simulator während des Laufs öffnen sollte, aber Jenkins konnte den Simulator nicht öffnen.Jenkins konnte den IOS-Simulator nicht öffnen
Jenkins in jenkins Benutzer ausführen.
Im Folgenden finden Sie, was das Projekt Verwendung: - Java Maven basiertes Projekt - Führt appium Server - appium Start IOS Simulator - dieser Schritt mit dem folgenden Fehler fehlschlagen
[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 }
Ich habe versucht, das Hinzufügen jenkins Benutzer Entwicklergruppe und DevToolsSecurity aktivieren, aber es hat nicht funktioniert.
Sind Ihre Jenkins als kopflose Benutzer konfiguriert? Kein Passwort, Bash-Umgebung usw.? –
Sieht aus, als hätten wir das gleiche (oder zumindest sehr ähnliche) Problem. Ich werde den Thread teilen, den ich in Appium Discuss veröffentlicht habe: https://discuss.appium.io/t/appium-tests-via-jenkins-simulator-not-booting-error-command-osascript-e-tell-application -system-events-to-count-processes-who-bundle-identifier-is-com-apple-iphonesimulator/19038 – Cindy
@KamilSzostakowski läuft als deamon. der Benutzer jenkins ist Sudoer, und es hat die Notwendigkeit, Umgebungsvariablen –