iphone - Could not pre-launch appium: Error: Instruments crashed on startup -
i need inspect ios app in appium inspector using real iphone device.
i using 1.4.8 appium version, physical device iphone 6 , platform version 8.3.
i have enabled enable ui automation option under developer option settings.
i have given following parameters in ios settings menu. app path: .zip format, platform version: 8.3, force device: iphone , udid: specific device
- if start appium server, getting below log message.
error log:-
launching appium command: '/applications/appium .app/contents/resources/node/bin/node' lib/server/main.js --command-timeout "7200" --pre-launch --debug-log-spacing --platform-version "8.3" --platform-name "ios" --app "/users/valar/work/sample_app.zip" --udid "4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00" --show-ios-log --device-name "iphone 6"
info: [debug] starting appium in pre-launch mode
info: pre-launching app info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: **** new session * info: **** new session * info: **** new session * info: **** new session * info: **** new session * info: **** new session * info: **** new session * info: **** new session * info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: ************************************* info: *************************************
info: [debug] using local .zip command line: /users/valar/work/sample_app.zip info: [debug] copying local zip tmp dir
info: [debug] /users/valar/work/sample_app.zip copied /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/t/115725-3663-1b0sdz4/appium-app.zip
info: [debug] unzipping /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/t/115725-3663-1b0sdz4/appium-app.zip
info: [debug] testing zip archive: /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/t/115725-3663-1b0sdz4/appium-app.zip
info: [debug] zip archive tested clean
info: [debug] unzip successful
info: [debug] using locally extracted app: /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/t/115725-3663-1b0sdz4/sample_app.app
info: [debug] creating new appium session ab360b32-08b6-4f6b-889e-78fe9a6b88f3 info: [debug] removing remaining instruments sockets info: [debug] cleaned instruments socket /tmp/instruments_sock info: [debug] auto-detecting ios udid... 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 app
info: [debug] parsed app info.plist (as binary) info: [debug] creating instruments info: [debug] preparing uiauto bootstrap info: [debug] dynamic bootstrap dir: /users/valar/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,"autodismissalerts":false,"sendkeystrategy":"grouped"} info: [debug] dynamic bootstrap code: // file automatically generated. not manually modify! ... info: [debug] dynamic bootstrap path: /users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js
info: [debug] reusing dynamic bootstrap: /users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js info: [debug] attempting ios device log capture via libimobiledevice idevicesyslog
info: [debug] creating idevice object udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00
info: [ios_syslog_row ] aug 25 11:37:49 iphone-6 syslog_relay[177] : syslog_relay found asl prompt. starting...
info: [debug] app installed.
info: [debug] fullreset not requested. no need install. info: [debug] starting command proxy.
info: [debug] instruments socket server started @ /tmp/instruments_sock info: [debug] starting instruments
info: [debug] instruments at: /applications/xcode.app/contents/developer/usr/bin/instruments
info: launching instruments
info: [debug] attempting run app on real device udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 info: [debug] spawning instruments 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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_app -e uiascript "/users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js" -e uiaresultspath /tmp/appium-instruments info: [debug] , without-delay env: {} info: [debug] , launch timeouts (in ms): {"global":90000}
info: [debug] [instserver] instruments exited code 253
info: [debug] killall instruments
info: [debug] instruments crashed on startup info: [debug] attempting retry launching instruments, retry #1 info: [debug] killall ios simulator info: [ios_syslog_row ] aug 25 11:37:50 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.processcontrol.posixspawn info: [ios_syslog_row ] aug 25 11:37:50 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.launchdaemon
info: [ios_syslog_row ] aug 25 11:37:50 iphone-6 notification_proxy[175] : 0x100494000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error!
info: [ios_syslog_row ] aug 25 11:37:50 iphone-6 notification_proxy[175] : 0x100494000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error!
info: [ios_syslog_row ] aug 25 11:37:52 iphone-6 locationd[61] : location icon should in state 'active'
info: [ios_syslog_row ] aug 25 11:37:53 iphone-6 cltm[20] : cltm: _subscription 0x0, _subscribedchannels 0x0
info: [ios_syslog_row ] aug 25 11:37:55 iphone-6 sample_app[151] : newrelic(4.186,0x174675e80): nrtimer.m:94 -[nrtimer timeelapsedinseconds]
info: [ios_syslog_row ] nrmatimer has negative duration: 1440482874430.621094 => 0.000000
info: launching instruments
info: [debug] attempting run app on real device udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00
info: [debug] spawning instruments 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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone.sample_app -e uiascript "/users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js" -e uiaresultspath /tmp/appium-instruments info: [debug] , without-delay env: {} info: [debug] , launch timeouts (in ms): {"global":90000}
info: [debug] [instserver] instruments exited code 253 info: [debug] killall instruments
info: [debug] instruments crashed on startup
info: [debug] attempting retry launching instruments, retry
2 info: [debug] killall ios simulator info: [ios_syslog_row ] aug 25 11:37:56 iphone-6 dtmobileis[191] : not create service
named com.apple.instruments.server.services.launchdaemon info: [ios_syslog_row ] aug 25 11:37:56 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.processcontrol.posixspawn info: [ios_syslog_row ] aug 25 11:37:56 iphone-6 notification_proxy[175] : 0x100384000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error! info: [ios_syslog_row ] aug 25 11:37:56 iphone-6 notification_proxy[175] : 0x100384000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error!
info: [ios_syslog_row ] aug 25 11:37:58 iphone-6 cltm[20] : cltm: _subscription 0x0, _subscribedchannels 0x0
info: [ios_syslog_row ] aug 25 11:38:01 iphone-6 sample_app151] : newrelic(4.186,0x17487e440): nrtimer.m:94 -[nrtimer timeelapsedinseconds]
info: [ios_syslog_row ] nrmatimer has negative duration: 1440482880235.167969 => 0.000000
info: launching instruments
info: [debug] attempting run app on real device udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 info: [debug] spawning instruments 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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_app -e uiascript "/users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js" -e uiaresultspath /tmp/appium-instruments info: [debug] , without-delay env: {} info: [debug] , launch timeouts (in ms): {"global":90000}
info: [debug] [instserver] instruments exited code 253
info: [debug] killall instruments
info: [debug] instruments crashed on startup info: [debug] attempting retry launching instruments, retry #3 info: [debug] killall ios simulator info: [ios_syslog_row ] aug 25 11:38:02 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.processcontrol.posixspawn info: [ios_syslog_row ] aug 25 11:38:02 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.launchdaemon
info: [ios_syslog_row ] aug 25 11:38:02 iphone-6 notification_proxy[175] : 0x10040c000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error!
info: [ios_syslog_row ] aug 25 11:38:02 iphone-6 notification_proxy[175] : 0x10040c000 -[mnplockdownconnection receivemessage]: lockdown_receive_message error!
info: [ios_syslog_row ] aug 25 11:38:02 iphone-6 locationd[61] : location icon should in state 'region monitoring'
info: [ios_syslog_row ] aug 25 11:38:03 iphone-6 cltm[20] : cltm: _subscription 0x0, _subscribedchannels 0x0
info: [ios_syslog_row ] aug 25 11:38:07 iphone-6 sample_app[151] : newrelic(4.186,0x174675e80): nrtimer.m:94 -[nrtimer timeelapsedinseconds]
info: [ios_syslog_row ] nrmatimer has negative duration: 1440482886151.112061 => 0.000000
info: launching instruments
info: [debug] attempting run app on real device udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 info: [debug] spawning instruments 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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_app -e uiascript "/users/valar/library/application support/appium/bootstrap/bootstrap-f2765f8569503e7c.js" -e uiaresultspath /tmp/appium-instruments info: [debug] , without-delay env: {} info: [debug] , launch timeouts (in ms): {"global":90000}
info: [debug] [instserver] instruments exited code 253
info: [debug] killall instruments
info: [debug] instruments crashed on startup info: [debug] exceeded number of retries allowed instruments start; failing launch info: [debug] stopping ios log capture info: [debug] running ios sim reset flow info: [debug] killing simulator process info: [debug] killing other simulator daemons info: [debug] killall ios simulator info: [ios_syslog_row ] aug 25 11:38:07 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.launchdaemon info: [ios_syslog_row ] aug 25 11:38:07 iphone-6 dtmobileis[191] : not create service named com.apple.instruments.server.services.processcontrol.posixspawn info: [debug] on real device; cannot clean device state info: [debug] cleaning appium session
error: not pre-launch appium: error: instruments crashed on startup
Comments
Post a Comment