Unable to luanch app using Appium 1.3.1 with Xcode 6. App not getting launched in instruments also. Any similar issues or suggestions?

App is not getting launched in simulator with new Appium 1.3.1 and Xcode 6. Instruments not launching the app.
info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] Using local app from command line: /Users/ayswariasubramanian/Desktop/24Oct2014/27th/SIT1_5s_iOS8/LOWES.app
info: [debug] Creating new appium session c98a343b-ff7f-4271-83ac-de5761748d53

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.0

info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.0”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPhone 5s”,“platformVersion”:null}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.0 Simulator)’
info: [debug] iOS sim UDID is 6100D47B-6ED3-49CC-858F-D36A6C2236D1
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Users/ayswariasubramanian/Desktop/24Oct2014/27th/SIT1_5s_iOS8/LOWES.app/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML

info: [debug] Could not parse plist file (as XML) at /Users/ayswariasubramanian/Desktop/24Oct2014/27th/SIT1_5s_iOS8/LOWES.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Getting bundle ID from app

parseFileSync() is deprecated. Use parseStringSync() instead.

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/ayswariasubramanian/Library/Application Support/appium/bootstrap

info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/ayswariasubramanian/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js

info: [debug] Reusing dynamic bootstrap: /Users/ayswariasubramanian/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.0”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPhone 5s”,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.0 Simulator)’
info: [debug] We’re on iOS7.1+ so forcing defaultDevice on
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.0”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPhone 5s”,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (8.0 Simulator)’
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] Cleaning sim data files

info: [debug] Executing: xcrun simctl erase 6100D47B-6ED3-49CC-858F-D36A6C2236D1

info: [debug] Executing: xcrun simctl erase 6100D47B-6ED3-49CC-858F-D36A6C2236D1

info: [debug] Executing: xcrun simctl erase 6100D47B-6ED3-49CC-858F-D36A6C2236D1

info: [debug] Executing: xcrun simctl erase 6100D47B-6ED3-49CC-858F-D36A6C2236D1

info: [debug] Cleaning app data files

warn: Applications directory /Users/ayswariasubramanian/Library/Developer/CoreSimulator/Devices/6100D47B-6ED3-49CC-858F-D36A6C2236D1/data/Applications doesn’t exist. Have you run this simulator before?
info: Couldn’t find app directories to delete. Probably it’s not installed
info: [debug] Not setting locale
info: [debug] No iOS / app preferences to set

info: [debug] Starting iOS 8.* simulator log capture

info: [debug] Not pre-launching simulator
info: [debug] No device id or app, not installing to real device.
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on iPhone 5s (8.0 Simulator)
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w “iPhone 5s (8.0 Simulator)” /Users/ayswariasubramanian/Desktop/24Oct2014/27th/SIT1_5s_iOS8/LOWES.app -e UIASCRIPT “/Users/ayswariasubramanian/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}

info: [debug] [INST] Waiting for device to boot…

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: “target = $.target();\nau = $;\n$.isVerbose = true;\n”

info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;

info: [debug] [INST] 2014-10-29 14:16:06 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-29 14:16:06 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-29 14:16:06 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:true}…

info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:true}
info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: “au.setScreenOrientation(‘PORTRAIT’)”
info: [debug] Sending command to instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-10-29 14:16:07 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-10-29 14:16:07 +0000 Debug: evaluating au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-10-29 14:16:07 +0000 Debug: target.setDeviceOrientation(“1”)

info: [debug] [INST] 2014-10-29 14:16:08 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-29 14:16:08 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-29 14:16:08 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:“PORTRAIT”}…

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:“PORTRAIT”}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:09 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:09 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:12 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-29 14:16:12 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-29 14:16:12 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}
info: [debug] Waited for 4091ms so far

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:13 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:13 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:16 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-29 14:16:16 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-29 14:16:16 +0000 Debug: Running system command #4: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}
info: [debug] Waited for 8190ms so far

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:17 +0000 Debug: Got new command 4 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:17 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-10-29 14:16:20 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-29 14:16:20 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-29 14:16:20 +0000 Debug: Running system command #5: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

error: Could not pre-launch appium: Error: App did not have elements

info: [debug] Socket data received (208 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}
info: [debug] Condition unmet after 12153ms. Timing out.
info: [debug] Cleaning up appium session

what do you mean? appium is not starting the instruments (simulator) or you can’t run the app neither on appium nor on xcode6’s instruments?

I have the same issue, the app keep loading status when launch app after.

I am getting the same issue where the app is not getting launched through appium or instruments.

Please find my logs below :

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] Using local app from command line: /Users/autoteam/Desktop/ATGMobileCommerce.app
info: [debug] Creating new appium session e1f4eba7-f2f1-4517-813c-124ab78d9e29

info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.1

info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] Using local app from command line: /Users/autoteam/Desktop/

info: [debug] Creating new appium session f3351fa3-ff0d-457a-9d0b-998be612a388

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.1

info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPad 2”,“platformVersion”:null}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPad 2 (8.1 Simulator)’
info: [debug] iOS sim UDID is BD76C639-7D60-47E0-841F-5097197C1715

info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/autoteam/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/autoteam/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Reusing dynamic bootstrap: /Users/autoteam/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPad 2”,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPad 2 (8.1 Simulator)’
info: [debug] We’re on iOS7.1+ so forcing defaultDevice on
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPad 2”,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPad 2 (8.1 Simulator)’

info: [debug] Parsed app Info.plist (as binary)
info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Not setting locale
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 8.* simulator log capture

info: [debug] Not pre-launching simulator

info: [debug] No device id or app, not installing to real device.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on iPad 2 (8.1 Simulator)
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w “iPad 2 (8.1 Simulator)” /Users/autoteam/Desktop/ATGMobileCommerce.app -e UIASCRIPT “/Users/autoteam/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:150000}

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:58 dhcp-hyd-scp-7fl-10-176-169-216 assertiond[26305]: assertion failed: 13E28 12B411: assertiond + 13690 [F3233EFE-D6AB-32E3-BB3E-2CC6D0333C88]: 0x1

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 dhcp-hyd-scp-7fl-10-176-169-216 com.apple.CoreSimulator.SimDevice.BD76C639-7D60-47E0-841F-5097197C1715.launchd_sim[26290] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 — last message repeated 1 time —

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 dhcp-hyd-scp-7fl-10-176-169-216 ATGMobileCommerce[26409]: assertion failed: 13E28 12B411: libxpc.dylib + 69090 [A854576A-3D30-3BF9-B2EC-B36C4B9E393C]: 0x7d

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 dhcp-hyd-scp-7fl-10-176-169-216 assertiond[26305]: assertion failed: 13E28 12B411: assertiond + 13690 [F3233EFE-D6AB-32E3-BB3E-2CC6D0333C88]: 0x1

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 dhcp-hyd-scp-7fl-10-176-169-216.in.oracle.com SpringBoard[26301]: [MPUSystemMediaControls] Updating supported commands for now playing application.

info: [IOS_SYSLOG_ROW ] Nov 6 13:06:59 dhcp-hyd-scp-7fl-10-176-169-216.in.oracle.com SpringBoard[26301]: Remote notifications are not supported in the simulator

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.

info: [debug] Setting bootstrap config keys/values

info: [debug] Pushing command to appium work queue: “target = $.target();\nau = $;\n$.isVerbose = true;\n”
info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;

info: [debug] [INST] 2014-11-06 07:37:02 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-11-06 07:37:02 +0000 Debug: responding with:

info: [debug] [INST] 2014-11-06 07:37:02 +0000 Debug: Running system command #1: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:true}…

info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:true}
info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: “au.setScreenOrientation(‘PORTRAIT’)”
info: [debug] Sending command to instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-11-06 07:37:03 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-11-06 07:37:03 +0000 Debug: evaluating au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2014-11-06 07:37:03 +0000 Debug: target.setDeviceOrientation(“1”)

info: [debug] [INST] 2014-11-06 07:37:04 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-11-06 07:37:04 +0000 Debug: responding with:
2014-11-06 07:37:04 +0000 Debug: Running system command #2: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:“PORTRAIT”}…

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:“PORTRAIT”}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:05 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:05 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:08 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-11-06 07:37:08 +0000 Debug: responding with:

info: [debug] [INST] 2014-11-06 07:37:08 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}

info: [debug] Waited for 4180ms so far

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:09 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:09 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:12 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-11-06 07:37:12 +0000 Debug: responding with:

info: [debug] [INST] 2014-11-06 07:37:12 +0000 Debug: Running system command #4: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}

info: [debug] Waited for 8508ms so far

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:13 +0000 Debug: Got new command 4 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:13 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2014-11-06 07:37:17 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-11-06 07:37:17 +0000 Debug: responding with:

info: [debug] [INST] 2014-11-06 07:37:17 +0000 Debug: Running system command #5: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,"enabl…

info: [debug] Socket data received (208 bytes)

info: [debug] Socket data being routed.

error: Could not pre-launch appium: Error: App did not have elements

info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0",“x”:0,“y”:0,“width”:0,“height”:0},">":[]}}}
info: [debug] Condition unmet after 12747ms. Timing out.
info: [debug] Cleaning up appium session

We’re also seeing this erro with xcode 6 - app launches but crashes straight away with error: Could not pre-launch appium: Error: App did not have elements???

Have you tried building on XCode6 but launch the app with Appium pointing to XCode5’s simulator?
I know it works with iOS7.1 because I use it that way.

@sam
I have the same issue with you that the error “App did not have elements”

I have tried it pointing to xcode 5, does not work. Looks like it is an instruments issue, but i find no solutions yet. Any suggestions appium team?

Is anybody from the Appium team looking at this issue?

When ios 8 and xcode 6 first dropped, I had a problem launching the app. Instruments and appium would say that they were trying to launch “[app path]/(null)”.

My solution was to take “DEBUG” out of the GCC_PREPROCESSOR_DEFINITIONS line in my xcconfig

Hope that helps. I know my error is different from yours but once I took that out I had no problem launching on instruments and appium.