After managing to sucessfully upgrade to Appium 1.3.1 and Xcode 6 (IOS 8.1). But when I upgraded my Mac OSx to Yosemite I am getting the following issue.
2014-11-13 10:28:19:027 - info: [debug] Getting list of devices instruments supports
2014-11-13 10:28:19:036 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-11-13 10:28:31:079 - error: Failed getting devices. Err: Error: Command failed: . Stdout: . Stderr: .
2014-11-13 10:28:31:079 - info: [debug] Cleaning up appium session
2014-11-13 10:28:31:080 - error: Failed to start an Appium session, err was: Error: Failed getting devices. Err: Error: Command failed: . Stdout: . Stderr: .
2014-11-13 10:28:31:081 - info: [debug] Error: Failed getting devices. Err: Error: Command failed: . Stdout: . Stderr: .
at /usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:103:19
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
But then if I retry
2014-11-13 10:29:51:903 - info: [debug] [INST STDERR] Failed to authorize rights (0x1) with status: -60007.
2014-11-13 10:29:52:020 - info: [debug] [INST STDERR] 2014-11-13 10:29:52.019 instruments[53040:375449] -[XRSimulatorDevice prepareConnection:]: Unable to authorize simulated daemon (53041): 8
2014-11-13 10:30:00:068 - info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug
I have tried
sudo security authorizationdb write system.privilege.taskport allow
security -v unlock-keychain
and run the authorize_ios
This happens only when the tests are running via jenkins job. If I run it from the command line I only get the first error and that too only once and upon retry the test runs fine.
Any help is appreciated.
thanks
Ali