Hi,
I’m trying to run Appium 1.3.3 or 1.3.4 with iOS SDK 8.1 (Xcode 6.1) and I’m facing Instruments crashes . I tried with iOS 7.1 and 8.1 devices. Below is the portion of the log. Is anyone facing similar issue?
nfo: [debug] Attempting to retry launching instruments, this is retry #3
info: [debug] Killall iOS Simulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID xxxxxxxxxxxxx
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 xxxxxxxxxxxxx net.authorize.mobilemerchant -e UIASCRIPT “/Users/sharamac/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.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 STDERR] 2015-01-15 15:03:56.570 instruments[16327:1003] Failed to start Instruments daemon on ‘iPadMini_ios7 (7.1.1)’ (The service is invalid.)
info: [debug] [INST] Waiting for device to boot…
info: [debug] [INST STDERR] 2015-01-15 15:03:56.747 instruments[16327:507] Failed to start Instruments daemon on ‘iPadMini_ios7 (7.1.1)’ (The service is invalid.)
info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “iPadMini_ios7 (7.1.1)”
info: [debug] [INSTSERVER] Instruments exited with code 255
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
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] On a real device; cannot clean device state
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] Error: Instruments crashed on startup
at Instruments.onInstrumentsExit (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31)
at null. (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Instruments crashed on startup)”,“origValue”:“Instruments crashed on startup”},“sessionId”:null}
error: Unexpected error: Error: Can’t set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
at ServerResponse.res.set.res.header (/usr/local/lib/node_modules/appium/node_modules/express/lib/response.js:561:10)
at ServerResponse.res.json (/usr/local/lib/node_modules/appium/node_modules/express/lib/response.js:208:36)
at ServerResponse.res.send (/usr/local/lib/node_modules/appium/node_modules/express/lib/response.js:121:21)
at /usr/local/lib/node_modules/appium/lib/server/responses.js:69:9
at safely (/usr/local/lib/node_modules/appium/lib/server/helpers.js:306:5)
at exports.respondError (/usr/local/lib/node_modules/appium/lib/server/responses.js:68:3)
at /usr/local/lib/node_modules/appium/lib/server/controller.js:187:9
at Appium.cleanupSession (/usr/local/lib/node_modules/appium/lib/appium.js:325:21)
at null. (/usr/local/lib/node_modules/appium/lib/appium.js:267:28) context: [POST /wd/hub/session {“desiredCapabilities”:{“deviceName”:“iPad”,“platformName”:“iOS”,“app”:"/Users/sharamac/Documents/Appium/Authorize.Net.app",“udid”:“xxxxxxxxxxxxx”}}]
Thanks.