Failed to start Instruments daemon on 'P_v_iphone_5s (7.1.2)' (The service is invalid.)

  1. I am using Xcode Version 6.3.2 and appium version 1.3.7.
  2. I am getting below defined error message, When I start appium server

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “com.company.iphone.sampleApp” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] App is an iOS bundle, will attempt to run as pre-existing

info: [debug] Creating new appium session cb824b1c-461e-41c1-9f34-2746150b37af
info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/company.iphone.sampleApp/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/company.iphone.sampleApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments

info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/alk/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/alk/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

info: [debug] Reusing dynamic bootstrap: /Users/alk/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.company.iphone.sampleApp

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736
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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 company.iphone.sampleApp -e UIASCRIPT “/Users/alk/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.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 ] May 29 16:57:11 P-v-iphone-5s mobile_installation_proxy[127] : 0x1004ac000 handle_connection: Could not receive request from host.

info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] : 01cdc000 -[hostWatcher initWithCheckinGoop:]: created <hostWatcher: 0x127e1fc10> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005] [fd=17]
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] : 01cdc000 -[hostWatcher initWithCheckinGoop:]: replacing old hostWatcher for F0FE931A-0099-4F10-932A-FAE4065DF358: <hostWatcher: 0x127d16430> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:17629] [fd=13]
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] : 01cdc000 -[hostWatcher invalidate]: invalidating host F0FE931A-0099-4F10-932A-FAE4065DF358
info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] : 01d64000 __25-[hostWatcher invalidate]_block_invoke: watcher for F0FE931A-0099-4F10-932A-FAE4065DF358 has already been replaced by <hostWatcher: 0x127e1fc10> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005] [fd=17]

info: [IOS_SYSLOG_ROW ] May 29 16:57:11 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher dealloc]: dealloc <hostWatcher: 0x127d16430> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:17629] [fd=13]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s locationd[60] : NStatManagerHandleSrcCounts:1717 couldn’t find NStatSourceRef for 629
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s locationd[60] : NStatManagerHandleSrcDescriptor:1263 update descriptor for invalid source
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01f84000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x127d19fc0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:25309)] [fd=22] [pid=137 (syslog_relay fd=21)] [hb=14018437927]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01f84000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127d19fc0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:25309)] [fd=22] [pid=137 (syslog_relay fd=21)] [hb=14018437927]
info: [debug] [INST STDERR] 2015-05-29 16:57:09.460 instruments[4584:88508] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 021a4000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x127e1fc10> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:23005] [fd=17]
info: [debug] [INST] Waiting for device to boot…
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 02094000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127d1faa0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:25565)] [fd=12] [pid=137 (syslog_relay fd=26)] [hb=14019322067]

info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01bcc000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127e23df0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:25821)] [fd=23] [pid=137 (syslog_relay fd=29)] [hb=14019420444]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127d1f0f0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:26077)] [fd=24] [pid=137 (syslog_relay fd=30)] [hb=14019682524]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 02094000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127e174d0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:26333)] [fd=25] [pid=137 (syslog_relay fd=31)] [hb=14019845299]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 02094000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127e1dd20> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:26589)] [fd=26] [pid=137 (syslog_relay fd=32)] [hb=14019858305]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127e1f1c0> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:26845)] [fd=27] [pid=137 (syslog_relay fd=33)] [hb=14020003369]
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01efc000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01efc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01efc000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 01efc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 set_response_error: handle_start_session SessionActive

info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 spawn_service_agent: Could not look up service in the map

info: [debug] [INST STDERR] 2015-05-29 16:57:09.564 instruments[4584:88502] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] May 29 16:57:12 P-v-iphone-5s lockdownd[25] : 0200c000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

Was this ever working?

I am getting this error message always, when I launch appium server. I got struck with this point, I don’t know how to proceed after this.

Follow this steps:
Xcode->Window->devices.
Open the Xcode than select select the windows>organizer select the device and clear the Consol and device logs. After above steps instruments have detected the device.

@Mayuresh_Shirodkar, I have cleared the device log.But, I am getting the below defined error message.

Launching Appium with command: ‘/Applications/Appium 2.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “com.company.iphone.sampleApp” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: [debug] App is an iOS bundle, will attempt to run as pre-existing

info: [debug] Creating new appium session 386d462e-d55c-46b9-b82e-259bb93e94a9

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Applications/Appium 2.app/Contents/Resources/node_modules/appium/com.company.iphone.sampleApp/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium 2.app/Contents/Resources/node_modules/appium/com.company.iphone.sampleApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments

info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap

info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium 2.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium 2.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/al/Library/Application Support/appium/bootstrap/bootstrap-2892eefaa399440a.js
info: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2892eefaa399440a.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator

info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

info: [debug] Checking app install status using: /Applications/Appium 2.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.com.company.iphone.sampleApp

error: Could not pre-launch appium: Error: Unable to install [com.company.iphone.sampleApp] to device with id [1c71d40a38f94c9e6682f5409e6ea6c0ec081736]. Error [Error: Command failed: /bin/sh -c /Applications/Appium 2.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle “com.company.iphone.sampleApp”
/bin/sh: /Applications/Appium: No such file or directory
]

“/Applications/Appium 2.app/” there is a space in your file Path.Hence you are getting the error.Please rename the Appium File such that there are no spaces.

Please do not keep any spaces in your file path further on :)It shoudl solve your problem.

@Mayuresh_Shirodkar, I have removed the space and then I have started appium server. I am getting the below defined error message.

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “com.company.iphone.sampleApp” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session bd31d947-4dab-40f8-a1ee-6cef05ced10e

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.company.iphone.sampleApp/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.company.iphone.sampleApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments

info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap

info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.company.iphone.sampleApp

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736
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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.iphone.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}

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 ] Jun 2 18:05:17 lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x127e17740> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:53211)] [fd=17] [pid=146 (syslog_relay fd=11)] [hb=391770389827]

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s mobile_installation_proxy[132] : 0x1001a8000 handle_connection: Could not receive request from host.

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s lockdownd[25] : 01bcc000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x127e17740> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:53211)] [fd=17] [pid=146 (syslog_relay fd=11)] [hb=391770389827]

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s lockdownd[25] : 01bcc000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x127e17740> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:53211)] [fd=17] [pid=146 (syslog_relay fd=11)] [hb=391770389827]
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s syslog_relay[146] : 0050c000 lockconn_disable_ssl: Could not shutdown SSL connection: -9806
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s DTMobileIS[441] : Could not create service named com.apple.instruments.server.services.launchdaemon
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s DTMobileIS[441] : Could not create service named com.apple.instruments.server.services.device.xpccontrol
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s DTMobileIS[441] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s DTMobileIS[441] : Could not create service named com.apple.instruments.server.services.device.applictionListing
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:18 P-v-iphone-5s DTMobileIS[441] : Could not create service named com.apple.dt.Xcode.WatchProcessControl

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:23 P-v-iphone-5s locationd[60] : Location icon should now be in state ‘Region Monitoring’

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.iphone.sampleApp-e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.608695]: WiFiLocaleManagerCheckLocale: trying to determine locale…

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.609020]: WiFiManagerCoreLocationGetCachedLocation: getting cached location…

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.610347]: __WiFiLocaleManagerGetLocaleFromMcc: finding iso country code for mcc 404 …

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.610636]: Starting Low Accuracy Location Monitoring, locationMonitoringTimeout=60.000000
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.610868]: WiFiManagerCoreLocationStartLocationUpdates: starting location updates…
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.611053]: Location Monitoring successfully started with accuracy=3000.000000meters
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.611257]: __WiFiLocationServiceManagerEventCallback, got cb dict {
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : eventType : 0
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : location : <+13.09608039,+80.23418896> +/- 5.00m (speed 0.00 mps / course -1.00) @ 6/2/15, 6:04:13 PM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : }
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.613714]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: isValidHighAccuracyLocation 1, isValidLowAccuracyLocation 1

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.613993]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: give low accuracy callback
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.614185]: __WiFiLocaleManagerGetLocaleFromLocation: <+13.09608039,+80.23418896> +/- 5.00m (speed 0.00 mps / course -1.00) @ 6/2/15, 6:04:13 PM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.615554]: locale from bounding box
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.615709]: new locale: , locale:
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.615865]: Stopping Low Accuracy Location Monitoring

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.616030]: Location Monitoring stopped
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.616174]: WiFiManagerCoreLocationStopLocationUpdates: stopping location updates…
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.616363]: Stopping Low Accuracy Location Monitoring
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.618864]: CLMonitoring is already stopped

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s DTMobileIS[442] : Could not create service named com.apple.instruments.server.services.launchdaemon
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s DTMobileIS[442] : Could not create service named com.apple.instruments.server.services.device.xpccontrol
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s DTMobileIS[442] : Could not create service named com.apple.instruments.server.services.device.applictionListing

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s DTMobileIS[442] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s DTMobileIS[442] : Could not create service named com.apple.dt.Xcode.WatchProcessControl
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:24 P-v-iphone-5s wifid[40] : WiFi:[454941324.677808]: WiFi unquiescing requested by “locationd”

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: Launching instruments

info: [debug] Attempting to run app on real device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.iphone.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 2 18:05:30 P-v-iphone-5s DTMobileIS[443] : Could not create service named com.apple.instruments.server.services.launchdaemon

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:30 P-v-iphone-5s DTMobileIS[443] : Could not create service named com.apple.instruments.server.services.device.xpccontrol

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:30 P-v-iphone-5s DTMobileIS[443] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn

info: [IOS_SYSLOG_ROW ] Jun 2 18:05:30 P-v-iphone-5s DTMobileIS[443] : Could not create service named com.apple.instruments.server.services.device.applictionListing
info: [IOS_SYSLOG_ROW ] Jun 2 18:05:30 P-v-iphone-5s DTMobileIS[443] : Could not create service named com.apple.dt.Xcode.WatchProcessControl

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

Are you just giving the Bundle ID or the App Path too?

Can you launch Instruments independently? For example, does this command (from your log) work on the command line?

/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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.iphone.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js” -e UIARESULTSPATH /tmp/appium-instruments

@Mayuresh_Shirodkar, I have given both app path and bundle id.

@wreed, I have tried the above commands in terminal. I am getting the below described message.

\2015-06-03 09:51:32.868 instruments[923:14242] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
Waiting for device to boot…
2015-06-03 09:51:32.986 instruments[923:14218] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
Instruments Usage Error : Timed out waiting for device to boot: “P_v_iphone_5s (7.1.2)”

try to give just the app path,do not give the bundle id

@Mayuresh_Shirodkar, I have tried with by giving the App path alone. I am getting below defined error message.

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “/Users/al/work/sampleApp.app” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app

info: [debug] Using local app from command line: /Users/al/work/sampleApp.app

info: [debug] Creating new appium session 289423e0-7048-48e9-93d6-9f72b6f9c592

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap

info: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js

info: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.company.sampleApp

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736
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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.sampleApp-e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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-03 09:54:25.862 instruments[1038:15511] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

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

info: [debug] [INST STDERR] 2015-06-03 09:54:26.041 instruments[1038:15506] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:27 P-v-iphone-5s mobile_installation_proxy[115] : 0x100494000 handle_connection: Could not receive request from host.

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 set_response_error: handle_start_session SessionActive
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:28 P-v-iphone-5s lockdownd[25] : 01cdc000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.954386]: WiFiLocaleManagerCheckLocale: trying to determine locale…

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.954657]: WiFiManagerCoreLocationGetCachedLocation: getting cached location…

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.955613]: __WiFiLocaleManagerGetLocaleFromMcc: finding iso country code for mcc 404 …
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.955847]: Starting Low Accuracy Location Monitoring, locationMonitoringTimeout=60.000000

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.956051]: WiFiManagerCoreLocationStartLocationUpdates: starting location updates…
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.956393]: Location Monitoring successfully started with accuracy=3000.000000meters
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.956956]: __WiFiLocationServiceManagerEventCallback, got cb dict {
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : eventType : 0

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : location : <+13.09606968,+80.23410234> +/- 65.00m (speed -1.00 mps / course -1.00) @ 6/3/15, 9:54:31 AM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : }
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.958645]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: isValidHighAccuracyLocation 1, isValidLowAccuracyLocation 1
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.958807]: __WiFiLocationServiceManagerProcessLocationAvailableEvent: give low accuracy callback
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.958940]: __WiFiLocaleManagerGetLocaleFromLocation: <+13.09606968,+80.23410234> +/- 65.00m (speed -1.00 mps / course -1.00) @ 6/3/15, 9:54:31 AM India Standard Time
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.959959]: locale from bounding box
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960084]: new locale: , locale:
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960206]: Stopping Low Accuracy Location Monitoring
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960337]: Location Monitoring stopped
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960449]: WiFiManagerCoreLocationStopLocationUpdates: stopping location updates…

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960599]: Stopping Low Accuracy Location Monitoring
info: [IOS_SYSLOG_ROW ] Jun 3 09:54:31 P-v-iphone-5s wifid[40] : WiFi:[454998271.960764]: CLMonitoring is already stopped

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:46 P-v-iphone-5s lockdownd[25] : 00484000 _select_socket: receive secure message timeout!

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:48 P-v-iphone-5s lockdownd[25] : 01cdc000 _select_socket: receive secure message timeout!

info: [IOS_SYSLOG_ROW ] Jun 3 09:54:48 P-v-iphone-5s lockdownd[25] : 01cdc000 _receive_message: walk away - non-SSL 1

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “com.company.sampleApp” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app

info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session b2e96ce2-af79-43db-9ca5-c2df1dbdc011
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.company.sampleApp/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.company.sampleApp/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments

info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag

info: [debug] Preparing uiauto bootstrap

info: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap

info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set

info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.com.company.sampleApp

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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-03 09:54:58.352 instruments[1122:15787] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

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

info: [debug] [INST STDERR] 2015-06-03 09:54:58.490 instruments[1122:15784] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s mobile_installation_proxy[115] : 0x100494000 handle_connection: Could not receive request from host.

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 set_response_error: handle_start_session SessionActive

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:00 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:04 P-v-iphone-5s wifid[40] : WiFi:[454998304.501187]: WoW is Enabled, 1 WoW Clients

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:18 P-v-iphone-5s lockdownd[25] : 01cdc000 _select_socket: receive secure message timeout!

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:20 P-v-iphone-5s lockdownd[25] : 00484000 _select_socket: receive secure message timeout!

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:20 P-v-iphone-5s lockdownd[25] : 00484000 _receive_message: walk away - non-SSL 1

info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “P_v_iphone_5s (7.1.2)”

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: Launching instruments

info: [debug] Attempting to run app on real device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.sampleApp-e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 3 09:55:36 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:36 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService

info: [debug] [INST STDERR] 2015-06-03 09:55:33.948 instruments[1125:15936] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:36 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map
info: [debug] [INST STDERR] Instruments Usage Error : Specified target process is invalid: com.company.sampleApp
instruments, version 6.3.2 (57082)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:36 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

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: Launching instruments

info: [debug] Attempting to run app on real device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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 3 09:55:41 P-v-iphone-5s lockdownd[25] : 0050c000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 0050c000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService

info: [debug] [INST STDERR] 2015-06-03 09:55:39.443 instruments[1128:15994] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 0050c000 spawn_service_agent: Could not look up service in the map
info: [debug] [INST] Waiting for device to boot…
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 0050c000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 00484000 set_response_error: handle_start_session SessionActive

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map

info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.remoteserver service agent:InvalidService

info: [debug] [INST STDERR] 2015-06-03 09:55:39.579 instruments[1128:15993] Failed to start Instruments daemon on ‘P_v_iphone_5s (7.1.2)’ (The service is invalid.)
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 00484000 spawn_service_agent: Could not look up service in the map
info: [IOS_SYSLOG_ROW ] Jun 3 09:55:41 P-v-iphone-5s lockdownd[25] : 00484000 spawn_and_handle_checkin: Could not spawn the com.apple.instruments.server service agent:InvalidService

info: [IOS_SYSLOG_ROW ] Jun 3 09:56:01 P-v-iphone-5s lockdownd[25] : 00484000 _select_socket: receive secure message timeout!

info: [IOS_SYSLOG_ROW ] Jun 3 09:56:01 P-v-iphone-5s lockdownd[25] : 00484000 _receive_message: walk away - non-SSL 1

info: [IOS_SYSLOG_ROW ] Jun 3 09:56:05 P-v-iphone-5s wifid[40] : WiFi:[454998365.192664]: WoW is Enabled, 1 WoW Clients

info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “P_v_iphone_5s (7.1.2)”

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 #3
info: [debug] Killall iOS Simulator

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

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 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 com.company.sampleApp -e UIASCRIPT “/Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.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] Instruments Usage Error : Unknown device specified: “1c71d40a38f94c9e6682f5409e6ea6c0ec081736”

info: [debug] [INST] Known Devices:
al Mac mini [E2A7F347-0266-53CD-B8F4-E1E2818B52D1]
iPhone 5 (8.3 Simulator) [663C5E4D-A268-410D-AF48-53CE8A065ADC]

info: [debug] [INSTSERVER] Instruments exited with code 255
info: [debug] Killall instruments

info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Instruments crashed on startup

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --command-timeout “7200” --pre-launch --platform-version “7.1.2” --platform-name “iOS” --app “/Users/al/work/sampleApp.app” --udid “1c71d40a38f94c9e6682f5409e6ea6c0ec081736” --show-ios-log --device-name “iPhone 5s” --isolate-sim-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app

info: [debug] Using local app from command line: /Users/al/work/sampleApp.app
info: [debug] Creating new appium session 552af22f-221d-40fb-8888-ebfaea5e77cd
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Parsed app Info.plist (as binary)

info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/al/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Reusing dynamic bootstrap: /Users/al/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5s”,“platformVersion”:“7.1.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5s (7.1.2 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid 1c71d40a38f94c9e6682f5409e6ea6c0ec081736

info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle com.company.sampleApp
info: [debug] App is not installed. Will try to install the app.

info: [debug] Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle “/Users/al/work/sampleApp.app”

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:50 lockdownd[25] : 0050c000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13d515480> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38095)] [fd=12] [pid=219 (syslog_relay fd=5)] [hb=169280183581]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:50 lockdownd[25] : 0050c000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13d515480> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38095)] [fd=12] [pid=219 (syslog_relay fd=5)] [hb=169280183581]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:50 lockdownd[25] : 01cdc000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 00484000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13d515480> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38095)] [fd=12] [pid=219 (syslog_relay fd=5)] [hb=169280183581]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 00484000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13d515480> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38095)] [fd=12] [pid=219 (syslog_relay fd=5)] [hb=169280183581]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s syslog_relay[219] : 00594000 lockconn_disable_ssl: Could not shutdown SSL connection: -9806
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 01cdc000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 00484000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13d515480> [client=deviceconsole (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38095)] [fd=12] [pid=219 (syslog_relay fd=5)] [hb=169280183581]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13d61be80> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38863)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169308432911]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13d61be80> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38863)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169308432911]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:51 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13d61be80> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38863)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169308432911]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13d61be80> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38863)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169308432911]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13d61be80> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:38863)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169308432911]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13d514100> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39375)] [fd=12] [pid=208 (afcd fd=10)] [hb=169324408922]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13d514100> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39375)] [fd=12] [pid=208 (afcd fd=10)] [hb=169324408922]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13d514100> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39375)] [fd=12] [pid=208 (afcd fd=10)] [hb=169324408922]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13d514100> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39375)] [fd=12] [pid=208 (afcd fd=10)] [hb=169324408922]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:52 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13d514100> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39375)] [fd=12] [pid=208 (afcd fd=10)] [hb=169324408922]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13d61bf30> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39887)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169338155258]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13d61bf30> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39887)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169338155258]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13d61bf30> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39887)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169338155258]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13d61bf30> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39887)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169338155258]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01d64000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01c54000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13d61bf30> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:39887)] [fd=12] [pid=213 (mobile_installation_proxy fd=5)] [hb=169338155258]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: first service <watchedServiceInfo: 0x13d517980> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:40143)] [fd=12] [pid=208 (afcd fd=10)] [hb=169344051941]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01cdc000 -[watchedServiceInfo logService:]: Watching <watchedServiceInfo: 0x13d517980> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:40143)] [fd=12] [pid=208 (afcd fd=10)] [hb=169344051941]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01dec000 -[hostWatcher runWatcher]: starting loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01d64000 -[watchedServiceInfo logService:]: Freeing heartbeat <watchedServiceInfo: 0x13d517980> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:40143)] [fd=12] [pid=208 (afcd fd=10)] [hb=169344051941]

info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01d64000 -[watchedServiceInfo logService:]: last service <watchedServiceInfo: 0x13d517980> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:40143)] [fd=12] [pid=208 (afcd fd=10)] [hb=169344051941]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01dec000 -[hostWatcher runWatcher]: ended loop for <hostWatcher: 0x13d618e50> [F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:35791] [fd=15]
info: [IOS_SYSLOG_ROW ] Jun 3 13:12:53 P-v-iphone-5s lockdownd[25] : 01d64000 -[watchedServiceInfo logService:]: dealloc <watchedServiceInfo: 0x13d517980> [client=fruitstrap (F0FE931A-0099-4F10-932A-FAE4065DF358 fe80::6e40:8ff:fea6:b9a:40143)] [fd=12] [pid=208 (afcd fd=10)] [hb=169344051941]

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Unable to install [/Users/al/work/sampleApp.app] to device with id [1c71d40a38f94c9e6682f5409e6ea6c0ec081736]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 1c71d40a38f94c9e6682f5409e6ea6c0ec081736 --bundle "/Users/al/work/sampleApp.app"
Assertion failed: (AMDeviceStartService(device, CFSTR(“com.apple.afc”), &afcFd, NULL) == 0), function handle_device, file fruitstrap.c, line 523.
]

Something is messed up with instruments. If you can’t start it from command line, Appium won’t be able to start it either. Does this work w/ Simulator or another device? Also, why use ‘–device-name “iPhone 5s”’ when the name comes up as ‘P_v_iphone_5s’? That doesn’t seem right at all.

@wreed, In simulator, the app getting crashed. Even, I have tried with different version of iphone. The same error I am getting.

If it is a issue with instruments,I would suggest u to upgrade your xcode to latest one if it is not already.It might help!

@Mayuresh_Shirodkar, I am using latest version of xcode as 6.3.2. and Appium version as 1.3.7.

My best advice is to try this on another machine. Something is really wrong in this one. Try setting up from scratch & following the tutorials very closely.