I am trying to run build definition from rtc which executed ant script, which invokes java appium tests. I am using java client 2.1.0 and appium server version 1.3.1.
When invoking the same ant script from command line the tests are running fine, but when rtc invokes the same ant script I am getting this error in appium console and the test execution freezes:
2014-11-17 14:17:44:859 - info: [debug] Creating new appium session ac6b41fa-fc3d-4d0a-b8d0-2786dcc29253
2014-11-17 14:17:44:862 - info: [debug] Removing any remaining instruments sockets
2014-11-17 14:17:44:894 - info: [debug] Cleaned up instruments socket /tmp/instruments_sock
2014-11-17 14:17:44:894 - info: [debug] Setting Xcode folder
2014-11-17 14:17:45:057 - info: [debug] Setting Xcode version
2014-11-17 14:17:48:086 - info: [debug] Setting iOS SDK Version
2014-11-17 14:17:48:086 - error: Could not determine Xcode version:Could not parse Xcode version (xcodebuild output was: )
2014-11-17 14:17:48:814 - info: [debug] Getting sdk version from xcrun with a timeout
2014-11-17 14:17:48:870 - info: [debug] iOS SDK Version set to 8.1
2014-11-17 14:17:48:871 - info: [debug] Checking whether instruments supports our device string
2014-11-17 14:17:48:873 - info: [debug] Getting list of devices instruments supports
2014-11-17 14:17:48:984 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-11-17 14:17:56:638 - info: --> GET /wd/hub/status {}
2014-11-17 14:17:56:640 - info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.1","revision":"1160ce02bb89c354cb99317985123acf39f0e7d3"},"isShuttingDown":false},"sessionId":"ac6b41fa-fc3d-4d0a-b8d0-2786dcc29253"}
2014-11-17 14:17:56:684 - info: <-- GET /wd/hub/status 200 45.610 ms - 178 {"status":0,"value":{"build":{"version":"1.3.1","revision":"1160ce02bb89c354cb99317985123acf39f0e7d3"},"isShuttingDown":false},"sessionId":"ac6b41fa-fc3d-4d0a-b8d0-2786dcc29253"}
2014-11-17 14:18:01:026 - error: Failed getting devices. Err: Error: Command failed: . Stdout: . Stderr: .
2014-11-17 14:18:01:026 - info: [debug] Getting list of devices instruments supports
2014-11-17 14:18:01:261 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-11-17 14:18:05:285 - info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":null,"iOSSDKVersion":"8.1","deviceName":"iPhone 5s","platformVersion":"7.1"}
2014-11-17 14:18:05:373 - error: Unhandled error: TypeError: Cannot read property '0' of null
at Function.IOS.getDeviceStringFromOpts (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:923:35)
at IOS.getDeviceString (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1004:14)
at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1088:24)
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:525:46
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:254:17
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:151:21
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:251:21
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:615:34
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:516:25
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:111:7 context: [POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/vladr/Documents/Developer/workspaceBuild/mobileNativeIOS/IBMECM/build/Debug-iphonesimulator/Navigator.app","showIOSLog":true,"platformVersion":"7.1","bundleId":"c]