appium: Instruments crashes on startup (Appium 1.3.3)
Instruments is crashing for me on startup, using iOS 8.1 on a mac with Xcode 6.
This isn’t a new issue, but I thought that this would be fixed by appium 1.3.3.
Console output:
info: [debug] [INST] Waiting for device to boot...
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Unable to install app with path: /Users/user/Documents/Projects/tests/testApp: "(null)"
info: [debug] [INSTSERVER] Instruments exited with code 253
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] Cleaning sim data files
info: [debug] Executing: xcrun simctl erase 44F7E420-FCE6-4C2C-9DA3-01C471410296
info: [debug] Executing: xcrun simctl erase 44F7E420-FCE6-4C2C-9DA3-01C471410296
info: [debug] Cleaning app data files
warn: Applications directory /Users/user/Library/Developer/CoreSimulator/Devices/44F7E420-FCE6-4C2C-9DA3-01C471410296/data/Containers/Data/Application doesn't exist. Have you run this simulator before?
warn: Applications directory /Users/user/Library/Developer/CoreSimulator/Devices/44F7E420-FCE6-4C2C-9DA3-01C471410296/data/Containers/Bundle/Application doesn't exist. Have you run this simulator before?
info: Couldn't find app directories to delete. Probably it's not installed
info: [debug] Cleaning up appium session
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.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:789: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}
info: <-- POST /wd/hub/session 500 46611.934 ms - 182
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 33 (12 by maintainers)
it seems that check “Use Native Instrument Library” on Appium iOS setting panel fixes this issue.
Even I was facing the same issue, the simulator was getting crashed and was not launching , but when I saw @shiyimin 's comment and his resolution worked, simulator loads now without any crash,if I check the “Use Native Instrument Library” on Appium iOS setting panel.
Thanks a lot @shiyimin