{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5530","labels_url":"https://api.github.com/repos/appium/appium/issues/5530/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5530/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5530/events","html_url":"https://github.com/appium/appium/issues/5530","id":102958825,"number":5530,"title":"Could not pre-launch appium: Error: Instruments crashed on startup","user":{"login":"valarmathivrv","id":9842215,"avatar_url":"https://avatars.githubusercontent.com/u/9842215?v=3","gravatar_id":"","url":"https://api.github.com/users/valarmathivrv","html_url":"https://github.com/valarmathivrv","followers_url":"https://api.github.com/users/valarmathivrv/followers","following_url":"https://api.github.com/users/valarmathivrv/following{/other_user}","gists_url":"https://api.github.com/users/valarmathivrv/gists{/gist_id}","starred_url":"https://api.github.com/users/valarmathivrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valarmathivrv/subscriptions","organizations_url":"https://api.github.com/users/valarmathivrv/orgs","repos_url":"https://api.github.com/users/valarmathivrv/repos","events_url":"https://api.github.com/users/valarmathivrv/events{/privacy}","received_events_url":"https://api.github.com/users/valarmathivrv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T06:29:01Z","updated_at":"2015-09-01T03:58:05Z","closed_at":null,"body":"1. I need to inspect an iOS app in appium inspector using real iphone device.\r\n2. I am using 1.4.8 as appium version, physical device as iphone 6 and platform version as 8.3.\r\n3. I have enabled Enable UI Automation option under Developer option settings.\r\n4. I have given the following parameters in iOS settings menu.\r\n      4.1 App path: .zip format\r\n      4.2 Platform Version: 8.3\r\n      4.3 Force Device: iPhone 6\r\n      4.4 UDID: for that specific device \r\n5. If I start appium server, I am getting the below log message.\r\n\r\nError Log:-\r\n\r\nLaunching Appium with 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\"\r\n\r\ninfo: [debug] Starting Appium in pre-launch mode\r\n\r\ninfo: Pre-launching app\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: ****        NEW SESSION           ***\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\ninfo: *************************************\r\n\r\ninfo: [debug] Using local .zip from command line: /Users/valar/work/sample_App.zip\r\ninfo: [debug] Copying local zip to tmp dir\r\n\r\ninfo: [debug] /Users/valar/work/sample_App.zip copied to /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/T/115725-3663-1b0sdz4/appium-app.zip\r\n\r\ninfo: [debug] Unzipping /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/T/115725-3663-1b0sdz4/appium-app.zip\r\n\r\ninfo: [debug] Testing zip archive: /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/T/115725-3663-1b0sdz4/appium-app.zip\r\n\r\ninfo: [debug] Zip archive tested clean\r\n\r\ninfo: [debug] Unzip successful\r\n\r\ninfo: [debug] Using locally extracted app: /var/folders/7g/_4s8f5kx4cs1875_psp3rps00000gn/T/115725-3663-1b0sdz4/sample_App.app\r\n\r\ninfo: [debug] Creating new appium session ab360b32-08b6-4f6b-889e-78fe9a6b88f3\r\ninfo: [debug] Removing any remaining instruments sockets\r\ninfo: [debug] Cleaned up instruments socket /tmp/instruments_sock\r\ninfo: [debug] Auto-detecting iOS udid...\r\ninfo: [debug] Not auto-detecting udid, running on sim\r\n\r\ninfo: [debug] Parsed app Info.plist (as binary)\r\n\r\ninfo: [debug] Parsed app Localizable.strings\r\ninfo: [debug] Getting bundle ID from app\r\n\r\ninfo: [debug] Parsed app Info.plist (as binary)\r\ninfo: [debug] Creating instruments\r\ninfo: [debug] Preparing uiauto bootstrap\r\ninfo: [debug] Dynamic bootstrap dir: /Users/valar/Library/Application Support/appium/bootstrap\r\ninfo: [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\"}\r\ninfo: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!\r\n...\r\ninfo: [debug] Dynamic bootstrap path: /Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\r\n\r\ninfo: [debug] Reusing dynamic bootstrap: /Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\r\ninfo: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog\r\n\r\ninfo: [debug] Creating iDevice object with udid 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:49 iPhone-6 syslog_relay[177] <Notice>: syslog_relay found the ASL prompt. Starting...\r\n\r\ninfo: [debug] App is installed.\r\n\r\ninfo: [debug] fullReset not requested. No need to install.\r\ninfo: [debug] Starting command proxy.\r\n\r\ninfo: [debug] Instruments socket server started at /tmp/instruments_sock\r\ninfo: [debug] Starting instruments\r\n\r\ninfo: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments\r\n\r\ninfo: Launching instruments\r\n\r\ninfo: [debug] Attempting to run app on real device with UDID 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00\r\ninfo: [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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_App -e UIASCRIPT \"/Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\n\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\n\r\ninfo: [debug] Killall instruments\r\n\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #1\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:50 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:50 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:50 iPhone-6 notification_proxy[175] <Error>: 0x100494000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:50 iPhone-6 notification_proxy[175] <Error>: 0x100494000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:52 iPhone-6 locationd[61] <Notice>: Location icon should now be in state 'Active'\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:53 iPhone-6 CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:55 iPhone-6 sample_App[151] <Warning>: NewRelic(4.186,0x174675e80):\tNRTimer.m:94\t-[NRTimer timeElapsedInSeconds]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] NRMATimer has a negative duration: 1440482874430.621094 => 0.000000\r\n\r\ninfo: Launching instruments\r\n\r\ninfo: [debug] Attempting to run app on real device with UDID 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00\r\n\r\ninfo: [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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone.sample_App -e UIASCRIPT \"/Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\n\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\ninfo: [debug] Killall instruments\r\n\r\ninfo: [debug] Instruments crashed on startup\r\n\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #2\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:56 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:56 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:56 iPhone-6 notification_proxy[175] <Error>: 0x100384000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:56 iPhone-6 notification_proxy[175] <Error>: 0x100384000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:37:58 iPhone-6 CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:01 iPhone-6 sample_App151] <Warning>: NewRelic(4.186,0x17487e440):\tNRTimer.m:94\t-[NRTimer timeElapsedInSeconds]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] NRMATimer has a negative duration: 1440482880235.167969 => 0.000000\r\n\r\ninfo: Launching instruments\r\n\r\ninfo: [debug] Attempting to run app on real device with UDID 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00\r\ninfo: [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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_App -e UIASCRIPT \"/Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\n\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\n\r\ninfo: [debug] Killall instruments\r\n\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #3\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:02 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:02 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:02 iPhone-6 notification_proxy[175] <Error>: 0x10040c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:02 iPhone-6 notification_proxy[175] <Error>: 0x10040c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:02 iPhone-6 locationd[61] <Notice>: Location icon should now be in state 'Region Monitoring'\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:03 iPhone-6 CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0\r\n\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:07 iPhone-6 sample_App[151] <Warning>: NewRelic(4.186,0x174675e80):\tNRTimer.m:94\t-[NRTimer timeElapsedInSeconds]\r\n\r\ninfo: [IOS_SYSLOG_ROW ] NRMATimer has a negative duration: 1440482886151.112061 => 0.000000\r\n\r\ninfo: Launching instruments\r\n\r\ninfo: [debug] Attempting to run app on real device with UDID 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00\r\ninfo: [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 4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00 com.company.iphone. sample_App -e UIASCRIPT \"/Users/valar/Library/Application Support/appium/bootstrap/bootstrap-f2765f8569503e7c.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\n\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\n\r\ninfo: [debug] Killall instruments\r\n\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch\r\ninfo: [debug] Stopping iOS log capture\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:07 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon\r\ninfo: [IOS_SYSLOG_ROW ] Aug 25 11:38:07 iPhone-6 DTMobileIS[191] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn\r\ninfo: [debug] On a real device; cannot clean device state\r\ninfo: [debug] Cleaning up appium session\r\n\r\nerror: Could not pre-launch appium: Error: Instruments crashed on startup\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/136570927","html_url":"https://github.com/appium/appium/issues/5530#issuecomment-136570927","issue_url":"https://api.github.com/repos/appium/appium/issues/5530","id":136570927,"user":{"login":"valarmathivrv","id":9842215,"avatar_url":"https://avatars.githubusercontent.com/u/9842215?v=3","gravatar_id":"","url":"https://api.github.com/users/valarmathivrv","html_url":"https://github.com/valarmathivrv","followers_url":"https://api.github.com/users/valarmathivrv/followers","following_url":"https://api.github.com/users/valarmathivrv/following{/other_user}","gists_url":"https://api.github.com/users/valarmathivrv/gists{/gist_id}","starred_url":"https://api.github.com/users/valarmathivrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valarmathivrv/subscriptions","organizations_url":"https://api.github.com/users/valarmathivrv/orgs","repos_url":"https://api.github.com/users/valarmathivrv/repos","events_url":"https://api.github.com/users/valarmathivrv/events{/privacy}","received_events_url":"https://api.github.com/users/valarmathivrv/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T03:58:05Z","updated_at":"2015-09-01T03:58:05Z","body":"@appium-ci , Can you provide solution for above problem, I got struck with above issue for a long time."}}