Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --command-timeout "7200" --debug-log-spacing --platform-version "8.1" --platform-name "iOS" --show-ios-log --default-device
info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {"platformName":"iOS","platformVersion":"8.1","defaultDevice":true,"showIOSLog":true,"defaultCommandTimeout":7200,"debugLogSpacing":true}
info: Console LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}
info: <-- GET /wd/hub/status 200 10.623 ms - 105 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/balaji/Downloads/Genie.ipa","platformName":"iOS","udid":"1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e","deviceName":"iPhone","platformVersion":"8.1.2"}}
info: Client User-Agent string: Apache-HttpClient/4.5.1 (Java/1.8.0_77)
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 .ipa from desired caps: /Users/balaji/Downloads/Genie.ipa
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/balaji/Downloads/Genie.ipa copied to /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/appium-app.zip
info: [debug] Unzipping /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/appium-app.zip
info: [debug] Testing zip archive: /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/Payload/Genie.app
info: [debug] Creating new appium session 677b00e8-8e46-46f6-be4b-f8d0938dfa8a
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid...
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/Payload/Genie.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 /var/folders/67/lfp6_j2x39sf6_m83xcvnjtw0000gp/T/116320-5806-1ndnki5/Payload/Genie.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn't exist
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/balaji/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/submodules/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: // This file is automatically generated. Do not manually modify!
...
info: [debug] Dynamic bootstrap path: /Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog
info: [debug] Creating iDevice object with udid 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e
info: [debug] App is not installed. Will try to install the app.
info: [debug] Installing ipa found at /Users/balaji/Downloads/Genie.ipa
info: [debug] Nothing found on device, going ahead and installing.
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:22 iPhone syslog_relay[697] : syslog_relay read 51 total bytes:
info: [IOS_SYSLOG_ROW ] ========================
info: [IOS_SYSLOG_ROW ] ASL is here to serve you
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:22 iPhone syslog_relay[697] : syslog_relay found the ASL prompt. Starting...
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:22 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:23 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:24 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone mobile_installation_proxy[143] : LaunchServices: installing app for existing placeholder Com.GenioInc.Expert
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone mobile_installation_proxy[143] : LaunchServices: Not creating progress for Com.GenioInc.Expert since it is not a placeholder.
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:25 iPhone installd[45] : 0x1001dc000 -[MIClientConnection doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Com.GenioInc.Expert" type Customer requested by mobileinstallation_proxy (pid 143)
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: <-- GET /wd/hub/status 200 5.087 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:28 iPhone installd[45] : 0x1001dc000 -[MIInstaller performInstallationWithError:]: Installing
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:28 iPhone profiled[128] : (Note ) MC: Provisioning profiles changed
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:28 iPhone installd[45] : SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone installd[45] : 0x1001dc000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for Com.GenioInc.Expert at /private/var/mobile/Containers/Data/Application/22D520BB-CAA9-4234-9607-6BB534286792
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone installd[45] : 0x1001dc000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for Com.GenioInc.Expert at /private/var/mobile/Containers/Bundle/Application/684AE9D5-FA43-4125-9689-D3F51F2D7515
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone installd[45] : 0x1001dc000 -[MIInstaller performInstallationWithError:]: Staging: 3.32s; Waiting: 0.00s; Installation: 0.50s; Overall: 3.82s
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone lsd[78] : LaunchServices: Updating identifier store
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : libMobileGestalt MobileGestalt.c:841: still-camera is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : libMobileGestalt MobileGestalt.c:841: magnetometer is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : libMobileGestalt MobileGestalt.c:841: any-telephony is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : libMobileGestalt MobileGestalt.c:841: stand-alone-contacts is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : ADDING REMOTE Com.GenioInc.Expert,
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:29 iPhone SpringBoard[53] : Installed apps did change.
info: [IOS_SYSLOG_ROW ] Added: {(
info: [IOS_SYSLOG_ROW ] "Com.GenioInc.Expert"
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Removed: {(
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Modified: {(
info: [IOS_SYSLOG_ROW ] )}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:30 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:30 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:31 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:31 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
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 real device with UDID 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e
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 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e Com.GenioInc.Expert -e UIASCRIPT "/Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INST STDERR] 2016-04-20 16:23:33.169 instruments[5821:19120] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone notification_proxy[118] : 0x100430000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone DTMobileIS[200] : Could not create service named com.apple.dt.Xcode.WatchProcessControl
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone DTMobileIS[200] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:33 iPhone notification_proxy[118] : 0x100430000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: <-- GET /wd/hub/status 200 3.864 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {"status":0,"value":[{"id":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a","capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/balaji/Downloads/Genie.ipa","platformName":"iOS","udid":"1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e","deviceName":"iPhone","platformVersion":"8.1.2"},"app":"/Users/balaji/Downloads/Genie.ipa","platformName":"iOS","udid":"1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e","deviceName":"iPhone","platformVersion":"8.1.2"}}],"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: <-- GET /wd/hub/sessions 200 1.598 ms - 683 {"status":0,"value":[{"id":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a","capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/balaji/Downloads/Genie.ipa","platformName":"iOS","udid":"1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e","deviceName":"iPhone","platformVersion":"8.1.2"},"app":"/Users/balaji/Downloads/Genie.ipa","platformName":"iOS","udid":"1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e","deviceName":"iPhone","platformVersion":"8.1.2"}}],"sessionId":"677b00e8-8e46-46f6-be4b-f8d0938dfa8a"}
info: --> GET /wd/hub/session/677b00e8-8e46-46f6-be4b-f8d0938dfa8a/source {}
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e
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 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e Com.GenioInc.Expert -e UIASCRIPT "/Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #2
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone DTMobileIS[200] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone DTMobileIS[200] : Could not create service named com.apple.dt.Xcode.WatchProcessControl
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone gputoolsd[711] : : io failure writing message: Broken pipe (32)
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:39 iPhone notification_proxy[118] : 0x1006c4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e
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 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e Com.GenioInc.Expert -e UIASCRIPT "/Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #3
info: [debug] Killall iOS Simulator
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone DTMobileIS[200] : Could not create service named com.apple.dt.Xcode.WatchProcessControl
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone DTMobileIS[200] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:45 iPhone notification_proxy[118] : 0x1003a4000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e
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 1223f4fd5230a6d309d6c7aeeb5dc73b34abe42e Com.GenioInc.Expert -e UIASCRIPT "/Users/balaji/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Apr 20 16:23:51 iPhone lockdownd[67] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INST STDERR] 2016-04-20 16:23:52.062 instruments[5840:19323] WebKit Threading Violation - initial use of WebKit from a secondary thread.
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] Killing any other simulator daemons
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] Killall iOS Simulator
info: [debug] On a real device; cannot clean device state
info: [debug] Cleaning up appium session
info: [debug] Error: Instruments crashed on startup
at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:440:31)
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:353:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess.handle.onexit (childprocess.js:1074: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 31490.433 ms - 182
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}
info: <-- GET /wd/hub/status 200 1.599 ms - 105 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"}}}