@munismajeed - Did you find out why you were getting this error? My tests run fine locally, but I’m getting this when I try to run them through Jenkins. I checked DevToolsSecurity on my machine, and it is enabled.
Edit: I am using the following:
Xcode Version 9.0 (9A235)
Appium 1.7.1
I’m wondering if this has anything to do with Xcode 9… I was able to run tests locally on Jenkins a few months ago. I documented every error that I came across in my setup process, and I never saw this. I’m just becoming aware of osascript by troubleshooting this issue.
Update: I downgraded to Xcode 8.3.3 and I’m still seeing the same issue. The simulator is not starting up, but the Appium Server is starting. The Console Output in Jenkins shows that the first test actually fails due to an ElementNotFound exception, so the test isn’t getting killed at the point where this exception is caught.
I’ll start a new thread since this is Jenkins-specific.
Final update: Jenkins-specific thread is here: https://discuss.appium.io/t/appium-tests-via-jenkins-simulator-not-booting-error-command-osascript-e-tell-application-system-events-to-count-processes-whose-bundle-identifier-is-com-apple-iphonesimulator/19038