Appium working for android app not working for ios app on mac

On my mac machine, initially appium was working fine for ios app. Then I started testing android app. Now I am able to test android app but not iOS app. Appium is giving error for ios app only.
Settings are as follows -
-Apple icon checked

  • App path - /Users/[username]/Documents/workspace/demoApp.ipa
  • BundleID -com.winjit.demoApp
  • Force Device -iPhone 5
  • Platform version -8.3
  • UDID -2cba5018d262561f3811f79d1f643286ff7ede23
    I am using Appium Version 1.4.0 (Draco). (Just updated version, error comes before update and even after update)
    =============
    Log -
    Launching Appium with command: ‘/usr/local/bin/node’ lib/server/main.js --command-timeout “7200” --debug-log-spacing --platform-version “8.3” --platform-name “iOS” --app “com.winjit.demoApp” --udid “2cba5018d262561f3811f79d1f643286ff7ede23” --show-ios-log --device-name “iPhone 5”

info: Welcome to Appium v1.4.1 (REV ce6220829063679bcccf5724515c29569c4a16d9)

info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“app”:“com.winjit.demoApp”,“udid”:“2cba5018d262561f3811f79d1f643286ff7ede23”,“deviceName”:“iPhone 5”,“platformName”:“iOS”,“platformVersion”:“8.3”,“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.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: <-- GET /wd/hub/status 200 88.249 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: <-- GET /wd/hub/status 200 7.142 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/vivekgabje/Documents/workspace/demoApp.ipa",“platformVersion”:“8.3”,“platformName”:“ios”,“deviceName”:“Winjit’s iPhone 4”}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
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/vivekgabje/Documents/workspace/demoApp.ipa
info: [debug] Copying local zip to tmp dir

info: [debug] /Users/vivekgabje/Documents/workspace/demoApp.ipa copied to /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/appium-app.zip

info: [debug] Unzipping /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/appium-app.zip

info: [debug] Testing zip archive: /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful

info: [debug] Got a relaxed match for app in zip, be careful for app match errors
info: [debug] Using locally extracted app: /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/Payload/Welcome.app

info: [debug] Creating new appium session f8108eae-7553-4be9-b932-1972a9d83029

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/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/Payload/Welcome.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/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11558-1467-78a8yu/Payload/Welcome.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/vivekgabje/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/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: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.js

info: [debug] Reusing dynamic bootstrap: /Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.js

info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 2cba5018d262561f3811f79d1f643286ff7ede23

info: [debug] App is installed.
info: [debug] fullReset not requested. No need to install.
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 2cba5018d262561f3811f79d1f643286ff7ede23
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 2cba5018d262561f3811f79d1f643286ff7ede23 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 8 18:32:06 Winjits-iPhone-4 syslog_relay[124] : syslog_relay found the ASL prompt. Starting…

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[422] : (Note ) mstreamd: Not monitoring for external power.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[422] : (Note ) PS: Media stream daemon stopping.
info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[422] : (Note ) AS: <MSIOSAlbumSharingDaemon: 0x14e3d8c0>: Shared Streams daemon has shut down.
info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[422] : (Warn ) mstreamd: mstreamd shutting down.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[423] : (Note ) mstreamd: mstreamd starting up.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:18 Winjits-iPhone-4 mstreamd[423] : (Note ) PS: Media stream daemon starting…

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“f8108eae-7553-4be9-b932-1972a9d83029”}

info: <-- GET /wd/hub/status 200 26.616 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“f8108eae-7553-4be9-b932-1972a9d83029”}

info: [debug] [INST STDERR] 2015-06-08 18:32:23.894 instruments[1488:58324] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [debug] [INST] Waiting for device to boot…

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:23 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:24 Winjits-iPhone-4 notification_proxy[122] : 0x481000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [debug] [INST STDERR] 2015-06-08 18:32:24.369 instruments[1488:58305] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:24 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:31 Winjits-iPhone-4 locationd[64] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:32 Winjits-iPhone-4 syncdefaultsd[419] : (Note ) marked “com.me.keyvalueservice” topic as “ignored” on (null)

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:32 Winjits-iPhone-4 syncdefaultsd[424] : (Note ) SYDAccount: no account

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:32 Winjits-iPhone-4 syncdefaultsd[424] : (Note ) SYDPIMAccount: no account (null)

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:32 Winjits-iPhone-4 syncdefaultsd[424] : (Note ) SYDAlwaysOnAccount: no account (null)

info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “Winjit’s iPhone 4 (8.3)”

info: [debug] [INSTSERVER] Instruments exited with code 255
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 ] Jun 8 18:32:54 Winjits-iPhone-4 notification_proxy[122] : 0x607000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 locationd[64] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[423] : (Note ) mstreamd: Not monitoring for external power.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[423] : (Note ) PS: Media stream daemon stopping.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[423] : (Note ) AS: <MSIOSAlbumSharingDaemon: 0x17549c60>: Shared Streams daemon has shut down.
info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[423] : (Warn ) mstreamd: mstreamd shutting down.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[425] : (Note ) mstreamd: mstreamd starting up.

info: [IOS_SYSLOG_ROW ] Jun 8 18:32:58 Winjits-iPhone-4 mstreamd[425] : (Note ) PS: Media stream daemon starting…

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 2cba5018d262561f3811f79d1f643286ff7ede23

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 2cba5018d262561f3811f79d1f643286ff7ede23 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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-06-08 18:33:01.741 instruments[1495:59229] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:01 Winjits-iPhone-4 notification_proxy[122] : 0x481000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [debug] [INST] Waiting for device to boot…

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:02 Winjits-iPhone-4 notification_proxy[122] : 0x481000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [debug] [INST STDERR] 2015-06-08 18:33:02.241 instruments[1495:59215] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:02 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.639215]: WiFiLocaleManagerCheckLocale: trying to determine locale…

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.640013]: WiFiManagerCoreLocationGetCachedLocation: getting cached location…
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.642841]: __WiFiLocaleManagerGetLocaleFromMcc: finding iso country code for mcc 404 …
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.643417]: WiFiLocationServiceManagerIsLocationValid: cachedLocationTimeout 120.000000 location age 129.541908secs, lifeSpan -1.000000 accuracy 65.000000(highAccReq 0), isValid 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.643767]: WiFiLocationServiceManagerStartLowAccuracyMonitoring: Cached low accuracy location is valid
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.644069]: WiFiLocationServiceManagerIsLocationValid: cachedLocationTimeout 120.000000 location age 129.542561secs, lifeSpan -1.000000 accuracy 65.000000(highAccReq 1), isValid 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.644409]: WiFiLocationServiceManagerIsLocationValid: cachedLocationTimeout 120.000000 location age 129.542901secs, lifeSpan -1.000000 accuracy 65.000000(highAccReq 0), isValid 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.644744]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: isValidHighAccuracyLocation 1, isValidLowAccuracyLocation 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.645698]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: give low accuracy callback
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.646030]: __WiFiLocaleManagerGetLocaleFromLocation: <+19.99925601,+73.75103137> +/- 65.00m (speed -1.00 mps / course -1.00) @ 6/8/15, 6:31:00 PM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.648084]: locale from bounding box
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.648455]: new locale: , locale:
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.648698]: Stopping Low Accuracy Location Monitoring
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.648944]: CLMonitoring is already stopped
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.649166]: Stopping Low Accuracy Location Monitoring

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.649402]: CLMonitoring is already stopped
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.649671]: __WiFiLocationServiceManagerEventCallback, got cb dict {
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : eventType : 0
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : location : <+19.99925517,+73.75103158> +/- 65.00m (speed -1.00 mps / course -1.00) @ 6/8/15, 6:33:09 PM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : }
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.651995]: WiFiLocationServiceManagerIsLocationValid: cachedLocationTimeout 120.000000 location age 0.007369secs, lifeSpan -1.000000 accuracy 65.000000(highAccReq 1), isValid 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.652335]: WiFiLocationServiceManagerIsLocationValid: cachedLocationTimeout 120.000000 location age 0.007709secs, lifeSpan -1.000000 accuracy 65.000000(highAccReq 0), isValid 1
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:09 Winjits-iPhone-4 wifid[70] : WiFi:[455461389.652664]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: isValidHighAccuracyLocation 1, isValidLowAccuracyLocation 1

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:16 Winjits-iPhone-4 locationd[64] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“f8108eae-7553-4be9-b932-1972a9d83029”}
info: <-- GET /wd/hub/status 200 5.946 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“f8108eae-7553-4be9-b932-1972a9d83029”}

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:30 Winjits-iPhone-4 kernel[0] : AppleMultitouchN1SPI: updating power statistics

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:30 Winjits-iPhone-4 SpringBoard[43] : [MPUSystemMediaControls] Disabling lock screen media controls updates for screen turning off.

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:30 Winjits-iPhone-4 backboardd[57] : MultitouchHID: detection mode: 3->255

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wifid[70] : WiFi:[455461411.331684]: Device display is OFF

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wifid[70] : WiFi:[455461411.360212]: ATJManager: setting ask-to-join interaction mode to NonInteractive
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wifid[70] : WiFi:[455461411.361017]: ATJManager: no entries to purge
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wifid[70] : WiFi:[455461411.361441]: Device is LOCKED
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wifid[70] : WiFi:[455461411.361700]: Ignoring lock state

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:31 Winjits-iPhone-4 wirelessproxd[45] : (Error) updateScanner - central is not powered on: 4

info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “Winjit’s iPhone 4 (8.3)”

info: [debug] [INSTSERVER] Instruments exited with code 255
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 ] Jun 8 18:33:31 Winjits-iPhone-4 notification_proxy[122] : 0x585000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 2cba5018d262561f3811f79d1f643286ff7ede23
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 2cba5018d262561f3811f79d1f643286ff7ede23 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 8 18:33:38 Winjits-iPhone-4 mstreamd[425] : (Note ) mstreamd: Not monitoring for external power.

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:38 Winjits-iPhone-4 mstreamd[425] : (Note ) PS: Media stream daemon stopping.
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:38 Winjits-iPhone-4 mstreamd[425] : (Note ) AS: <MSIOSAlbumSharingDaemon: 0x146706e0>: Shared Streams daemon has shut down.

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:38 Winjits-iPhone-4 mstreamd[425] : (Warn ) mstreamd: mstreamd shutting down.
info: [IOS_SYSLOG_ROW ] Jun 8 18:33:38 Winjits-iPhone-4 mstreamd[426] : (Note ) mstreamd: mstreamd starting up.

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:39 Winjits-iPhone-4 mstreamd[426] : (Note ) PS: Media stream daemon starting…

info: [debug] [INST STDERR] 2015-06-08 18:33:40.919 instruments[1502:59979] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:40 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [debug] [INST] Waiting for device to boot…

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:41 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [debug] [INST STDERR] 2015-06-08 18:33:41.856 instruments[1502:59965] Failed to start Instruments daemon on ‘Winjit’s iPhone 4 (8.3)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 8 18:33:41 Winjits-iPhone-4 notification_proxy[122] : 0x503000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

Can any one please help me, I cant understand where I am going wrong.

Looks like the iPhone is rebooting and needs to be unlocked. Could you watch the process and see if that’s the case? Or just remove the lock code & run it again…

In this case just try the instrument command from command line and see what happens:

/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
2cba5018d262561f3811f79d1f643286ff7ede23 com.winjit.demoApp -e UIASCRIPT
“/Users/vivekgabje/Library/Application
Support/appium/bootstrap/bootstrap-8254a53bde75f056.js” -e
UIARESULTSPATH /tmp/appium-instruments

After running this command terminal is showing error. Therefore I am trying with different device. So currently app gets opened on new device, and after opening it gets crashed. It is working properly on simulator
Currently I am using iPhone 4S , os- 8.1.3.
UDID - 824041534137b2f32642ab435a87417d77a91343
Here in appium Platform version 8.1.3 not available, so I have selected 8.1.2.

Following is the log -

Launching Appium with command: ‘/usr/local/bin/node’ lib/server/main.js --command-timeout “7200” --debug-log-spacing --platform-version “8.1.2” --platform-name “iOS” --app “com.winjit.demoApp” --udid “824041534137b2f32642ab435a87417d77a91343” --show-ios-log --device-name “iPhone 4s”

info: Welcome to Appium v1.4.1 (REV ce6220829063679bcccf5724515c29569c4a16d9)

info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“app”:“com.winjit.demoApp”,“udid”:“824041534137b2f32642ab435a87417d77a91343”,“deviceName”:“iPhone 4s”,“platformName”:“iOS”,“platformVersion”:“8.1.2”,“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.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: <-- GET /wd/hub/status 200 15.878 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/vivekgabje/Documents/workspace/demoApp.ipa",“platformVersion”:“8.1.3”,“platformName”:“ios”,“deviceName”:“iPhone 4S”}}

info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
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/vivekgabje/Documents/workspace/demoApp.ipa
info: [debug] Copying local zip to tmp dir

info: [debug] /Users/vivekgabje/Documents/workspace/demoApp.ipa copied to /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/appium-app.zip

info: [debug] Unzipping /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/appium-app.zip

info: [debug] Testing zip archive: /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful
info: [debug] Got a relaxed match for app in zip, be careful for app match errors
info: [debug] Using locally extracted app: /var/folders/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/Payload/Welcome.app
info: [debug] Creating new appium session 0de4e347-c25c-42cb-81ab-04c3cc651af3

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/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/Payload/Welcome.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/6k/dgjf0x9j0b9b7t64xx9w2kqh0000gn/T/11559-3127-1un5y97/Payload/Welcome.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/vivekgabje/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/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: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.js

info: [debug] Reusing dynamic bootstrap: /Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 824041534137b2f32642ab435a87417d77a91343

info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“0de4e347-c25c-42cb-81ab-04c3cc651af3”}

info: <-- GET /wd/hub/status 200 6.736 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.4.1”,“revision”:“ce6220829063679bcccf5724515c29569c4a16d9”},“isShuttingDown”:false},“sessionId”:“0de4e347-c25c-42cb-81ab-04c3cc651af3”}

info: [debug] App is installed.
info: [debug] fullReset not requested. No need to install.
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 824041534137b2f32642ab435a87417d77a91343
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 824041534137b2f32642ab435a87417d77a91343 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 9 14:42:00 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 installd[1210] : 0x401000 -[MIBundle isApplicableToCurrentOSVersionWithError:]: 333: The system version is lower than the minimum OS version specified for bundle at /private/var/mobile/Containers/Bundle/Application/1608709F-60A5-4E99-AD1B-A170B082744D/Instagram.app/PlugIns/InstagramWatchKitExtension.appex. Have 8.1.3; need 8.2
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:00 Winjit-iPhone-7 installd[1210] : 0x401000 -[MIBundle pluginKitBundlesWithError:]: Ignoring plugin at /private/var/mobile/Containers/Bundle/Application/1608709F-60A5-4E99-AD1B-A170B082744D/Instagram.app/PlugIns/InstagramWatchKitExtension.appex because it doesn’t work on this OS version
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:01 Winjit-iPhone-7 installd[1210] : 0x401000 -[MIBundle isApplicableToCurrentOSVersionWithError:]: 333: The system version is lower than the minimum OS version specified for bundle at /private/var/mobile/Containers/Bundle/Application/496E6510-0921-48D0-B56A-3797460C6727/Skype.app/PlugIns/Skype WatchKit Extension.appex. Have 8.1.3; need 8.2

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:01 Winjit-iPhone-7 installd[1210] : 0x401000 -[MIBundle pluginKitBundlesWithError:]: Ignoring plugin at /private/var/mobile/Containers/Bundle/Application/496E6510-0921-48D0-B56A-3797460C6727/Skype.app/PlugIns/Skype WatchKit Extension.appex because it doesn’t work on this OS version
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:01 Winjit-iPhone-7 syslog_relay[1205] : syslog_relay found the ASL prompt. Starting…

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:01 Winjit-iPhone-7 installd[1210] : 0x68b000 -[MIBundle isApplicableToCurrentOSVersionWithError:]: 333: The system version is lower than the minimum OS version specified for bundle at /private/var/mobile/Containers/Bundle/Application/5C86C0E8-656D-4540-8675-AD526676CDB7/NDTV.app/PlugIns/NDTV.appex. Have 8.1.3; need 8.2
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:01 Winjit-iPhone-7 installd[1210] : 0x68b000 -[MIBundle pluginKitBundlesWithError:]: Ignoring plugin at /private/var/mobile/Containers/Bundle/Application/5C86C0E8-656D-4540-8675-AD526676CDB7/NDTV.app/PlugIns/NDTV.appex because it doesn’t work on this OS version

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:07 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:07 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-06-09 14:42:06.235 instruments[3142:62910] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:08 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:08 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:09 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:09 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:09 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:09 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:10 Winjit-iPhone-7 SpringBoard[43] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:13 Winjit-iPhone-7 kernel[0] : xpcproxy[1389] Container: /private/var/mobile/Containers/Data/Application/48396C5A-8A6B-4A1D-9A49-88A68EDBB424 (sandbox)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:13 Winjit-iPhone-7 Welcome[1389] : assertion failed: 12B466: libxpc.dylib + 51955 [63E5390F-F156-3BDC-AD59-B826676CE6D0]: 0x7d

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:13 Winjit-iPhone-7 Unknown[1389] :

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:13 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:13 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ScriptAgent[1390] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 notification_proxy[1203] : 0x383000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 notification_proxy[1203] : 0x409000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ScriptAgent[1390] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ScriptAgent[1390] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x25da85f7 0x3361ac77 0x25da853d 0x255475 0x25538b 0x1e38e3 0x26abbb4f 0x25d6efd7 0x25d6e3eb 0x25d6ca69 0x25cb9b31 0x25cb9943 0x269f68f1 0x26a44d65 0xd27c1 0x33bb6aaf)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ReportCrash[1391] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ReportCrash[1391] : ReportCrash acting against PID 1390

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ReportCrash[1391] : Formulating crash report for process ScriptAgent[1390]

info: [debug] [INST STDERR] 2015-06-09 14:42:12.682 instruments[3142:62881] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-06-09 09:12:12 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:14 Winjit-iPhone-7 ReportCrash[1391] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-06-09-144214_Winjit-iPhone-7.ips

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 com.apple.xpc.launchd[1] (UIKitApplication:com.winjit.demoApp[0x2434][1389]) : Service exited due to signal: Killed: 9
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 SpringBoard[43] : Unable to get short BSD proc info for 1389: No such process

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 SpringBoard[43] : Application ‘UIKitApplication:com.winjit.demoApp[0x2434]’ exited abnormally via signal.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 assertiond[58] : pid_suspend failed for <BKNewProcess: 0x1463c1f0; com.winjit.demoApp; pid: 1389; hostpid: -1>: Unknown error: -1, Unknown error: -1
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x1463c1f0; com.winjit.demoApp; pid: 1389; hostpid: -1> to 2, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x1463c1f0; com.winjit.demoApp; pid: 1389; hostpid: -1> to 4096, priority: No such process

info: [debug] [INST] Instruments Trace Complete (Duration : 5.872791s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

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 ] Jun 9 14:42:15 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:15 Winjit-iPhone-7 notification_proxy[1203] : 0x409000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:16 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 824041534137b2f32642ab435a87417d77a91343
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 824041534137b2f32642ab435a87417d77a91343 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 9 14:42:22 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-06-09 14:42:20.315 instruments[3148:62989] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:22 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:23 Winjit-iPhone-7 SpringBoard[43] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 kernel[0] : xpcproxy[1393] Container: /private/var/mobile/Containers/Data/Application/48396C5A-8A6B-4A1D-9A49-88A68EDBB424 (sandbox)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 Welcome[1393] : assertion failed: 12B466: libxpc.dylib + 51955 [63E5390F-F156-3BDC-AD59-B826676CE6D0]: 0x7d

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 syncdefaultsd[1385] : (Note ) marked “com.me.keyvalueservice” topic as “ignored” on (null)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 Unknown[1393] :

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:26 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 syncdefaultsd[1395] : (Note ) SYDAccount: no account
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 syncdefaultsd[1395] : (Note ) SYDPIMAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 syncdefaultsd[1395] : (Note ) SYDAlwaysOnAccount: no account (null)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ScriptAgent[1394] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ScriptAgent[1394] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ScriptAgent[1394] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x25da85f7 0x3361ac77 0x25da853d 0x1b2475 0x1b238b 0x1408e3 0x26abbb4f 0x25d6efd7 0x25d6e3eb 0x25d6ca69 0x25cb9b31 0x25cb9943 0x269f68f1 0x26a44d65 0x2f7c1 0x33bb6aaf)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ReportCrash[1396] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ReportCrash[1396] : ReportCrash acting against PID 1394

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ReportCrash[1396] : Formulating crash report for process ScriptAgent[1394]
info: [debug] [INST STDERR] 2015-06-09 14:42:25.682 instruments[3148:63021] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-06-09 09:12:25 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:27 Winjit-iPhone-7 ReportCrash[1396] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-06-09-144227_Winjit-iPhone-7.ips

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 com.apple.xpc.launchd[1] (UIKitApplication:com.winjit.demoApp[0x84b8][1393]) : Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 SpringBoard[43] : Application ‘UIKitApplication:com.winjit.demoApp[0x84b8]’ exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 assertiond[58] : pid_suspend failed for <BKNewProcess: 0x14533f70; com.winjit.demoApp; pid: 1393; hostpid: -1>: Unknown error: -1, Unknown error: -1

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x14533f70; com.winjit.demoApp; pid: 1393; hostpid: -1> to 2, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x14533f70; com.winjit.demoApp; pid: 1393; hostpid: -1> to 4096, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 UserEventAgent[17] : id=com.winjit.demoApp pid=1393, state=0

info: [debug] [INST] Instruments Trace Complete (Duration : 6.153208s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0
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 ] Jun 9 14:42:28 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.launchdaemon
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 notification_proxy[1203] : 0x409000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:28 Winjit-iPhone-7 notification_proxy[1203] : 0x409000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:31 Winjit-iPhone-7 kernel[0] : 054575.963979 wlan0.A[2863] AppleBCMWLANNetManager::updateLinkQualityMetrics(): Report LQM to User Land 100, fAverageRSSI -70

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 824041534137b2f32642ab435a87417d77a91343
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 824041534137b2f32642ab435a87417d77a91343 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 9 14:42:34 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:34 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:34 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:34 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:35 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:35 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-06-09 14:42:33.043 instruments[3153:63068] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:35 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:35 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:36 Winjit-iPhone-7 SpringBoard[43] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:38 Winjit-iPhone-7 kernel[0] : xpcproxy[1398] Container: /private/var/mobile/Containers/Data/Application/48396C5A-8A6B-4A1D-9A49-88A68EDBB424 (sandbox)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 Welcome[1398] : assertion failed: 12B466: libxpc.dylib + 51955 [63E5390F-F156-3BDC-AD59-B826676CE6D0]: 0x7d
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 Unknown[1398] :
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 notification_proxy[1203] : 0x383000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 ScriptAgent[1399] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 ScriptAgent[1399] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 ScriptAgent[1399] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x25da85f7 0x3361ac77 0x25da853d 0x1d1475 0x1d138b 0x15f8e3 0x26abbb4f 0x25d6efd7 0x25d6e3eb 0x25d6ca69 0x25cb9b31 0x25cb9943 0x269f68f1 0x26a44d65 0x4e7c1 0x33bb6aaf)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 ReportCrash[1400] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:39 Winjit-iPhone-7 ReportCrash[1400] : ReportCrash acting against PID 1399

info: [debug] [INST STDERR] 2015-06-09 14:42:37.887 instruments[3153:63091] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 ReportCrash[1400] : Formulating crash report for process ScriptAgent[1399]
info: [debug] [INST] 2015-06-09 09:12:37 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 ReportCrash[1400] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-06-09-144239_Winjit-iPhone-7.ips

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 SpringBoard[43] : Unable to get short BSD proc info for 1398: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 com.apple.xpc.launchd[1] (UIKitApplication:com.winjit.demoApp[0x8e58][1398]) : Service exited due to signal: Killed: 9

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 SpringBoard[43] : Application ‘UIKitApplication:com.winjit.demoApp[0x8e58]’ exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 assertiond[58] : pid_suspend failed for <BKNewProcess: 0x14538960; com.winjit.demoApp; pid: 1398; hostpid: -1>: Unknown error: -1, Unknown error: -1

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x14538960; com.winjit.demoApp; pid: 1398; hostpid: -1> to 2, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x14538960; com.winjit.demoApp; pid: 1398; hostpid: -1> to 4096, priority: No such process

info: [debug] [INST] Instruments Trace Complete (Duration : 5.636387s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0
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 ] Jun 9 14:42:41 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:41 Winjit-iPhone-7 DTMobileIS[1226] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:41 Winjit-iPhone-7 notification_proxy[1203] : 0x383000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:41 Winjit-iPhone-7 notification_proxy[1203] : 0x383000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 824041534137b2f32642ab435a87417d77a91343
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 824041534137b2f32642ab435a87417d77a91343 com.winjit.demoApp -e UIASCRIPT “/Users/vivekgabje/Library/Application Support/appium/bootstrap/bootstrap-8254a53bde75f056.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 ] Jun 9 14:42:47 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [debug] [INST STDERR] 2015-06-09 14:42:45.430 instruments[3159:63147] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:47 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:48 Winjit-iPhone-7 SpringBoard[43] : Entitlement com.apple.multitasking.termination required to kill applications.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:49 Winjit-iPhone-7 wifid[69] : WiFi:[455533969.275791]: apsd[80] is a wow client

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:49 Winjit-iPhone-7 wifid[69] : WiFi:[455533969.276688]: WoW is Enabled, 1 WoW Clients

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:50 Winjit-iPhone-7 kernel[0] : xpcproxy[1402] Container: /private/var/mobile/Containers/Data/Application/48396C5A-8A6B-4A1D-9A49-88A68EDBB424 (sandbox)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 Welcome[1402] : assertion failed: 12B466: libxpc.dylib + 51955 [63E5390F-F156-3BDC-AD59-B826676CE6D0]: 0x7d

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 Unknown[1402] :

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 ScriptAgent[1403] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 notification_proxy[1203] : 0x301000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 ScriptAgent[1403] : UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 ScriptAgent[1403] : *** Terminating app due to uncaught exception ‘kUIAExceptionUIAutomationNotEnabled’, reason: ‘UIAutomation is not enabled on this device. UIAutomation must be enabled in Settings.’
info: [IOS_SYSLOG_ROW ] *** First throw call stack:
info: [IOS_SYSLOG_ROW ] (0x25da85f7 0x3361ac77 0x25da853d 0x1f8475 0x1f838b 0x1868e3 0x26abbb4f 0x25d6efd7 0x25d6e3eb 0x25d6ca69 0x25cb9b31 0x25cb9943 0x269f68f1 0x26a44d65 0x757c1 0x33bb6aaf)

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 ReportCrash[1404] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:51 Winjit-iPhone-7 ReportCrash[1404] : ReportCrash acting against PID 1403

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 ReportCrash[1404] : Formulating crash report for process ScriptAgent[1403]
info: [debug] [INST STDERR] 2015-06-09 14:42:49.856 instruments[3159:63167] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
info: [debug] [INST] 2015-06-09 09:12:49 +0000 Fail: An error occurred while trying to run the script.

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 ReportCrash[1404] : Saved report to /var/mobile/Library/Logs/CrashReporter/ScriptAgent_2015-06-09-144251_Winjit-iPhone-7.ips

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 com.apple.xpc.launchd[1] (UIKitApplication:com.winjit.demoApp[0xf2d7][1402]) : Service exited due to signal: Killed: 9
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 SpringBoard[43] : Unable to get short BSD proc info for 1402: No such process

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 SpringBoard[43] : Application ‘UIKitApplication:com.winjit.demoApp[0xf2d7]’ exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 assertiond[58] : pid_suspend failed for <BKNewProcess: 0x1463cb00; com.winjit.demoApp; pid: 1402; hostpid: -1>: Unknown error: -1, Unknown error: -1
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x1463cb00; com.winjit.demoApp; pid: 1402; hostpid: -1> to 2, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 assertiond[58] : Could not set priority of <BKNewProcess: 0x1463cb00; com.winjit.demoApp; pid: 1402; hostpid: -1> to 4096, priority: No such process
info: [IOS_SYSLOG_ROW ] Jun 9 14:42:52 Winjit-iPhone-7 UserEventAgent[17] : id=com.winjit.demoApp pid=1402, state=0

info: [debug] [INST] Instruments Trace Complete (Duration : 5.338446s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0
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
info: [debug] Killall iOS Simulator

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 [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:440:31)
at [object Object]. (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:353:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.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 53716.853 ms - 182

Can you please suggest solution on this issue ?

The app is crashing instruments at startup:

info: [IOS_SYSLOG_ROW ] Jun 9 14:42:40 Winjit-iPhone-7 SpringBoard[43] : Application ‘UIKitApplication:com.winjit.demoApp[0x8e58]’ exited abnormally via signal.

Issue Solved. That was silly mistake. In new device I forgot to enable UIAutomation.
Just goto Settings -> Developer -> Enable UIAutomation.

Thanks for the all the solution given for solving this issue

Glad you got it worked out. I also wish these errors were a little more obvious.

Can u please help me on how to setup eclipse on mac OS to test android apps ??