Not able to Open Safari on Real iOS Device

Hi
I am new to appium, I try to open Safari on Real device but getting the below error, Please se the details below. Its installed the safarilauncher on the device but its not able to open the safari browser

Please help

my code look like below:
WebDriver driver;
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”, “anuj.vat’s iphone”);
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, “Safari”);
capabilities.setCapability(“udid”,“5f9c26353308bb90f7184591a3e45eda30fee5b8”); capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“app”, “/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app”);
capabilities.setCapability(“bundleId”, “/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app”);
capabilities.setCapability(“platformVersion”, “8.0.2”);

driver = new IOSDriver(new URL(“http://127.0.0.1:4723/wd/hub”),
capabilities);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.get(“http://www.google.com”);

iOS- 10.9.5
Xcode- 5.1
Appium 1.3.7
Iphone- 5s

Log are below—
Welcome to Appium v1.3.7-beta (REV 545372b782e1b580bc8d0ea5f04be8c1600f9f00)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“platformVersion”:“8.0.2”,“bundleId”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“browserName”:“Safari”,“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”,“platformName”:“iOS”,“deviceName”:“anuj.vat’s iphone”}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Configuring Safari session
info: [debug] Using local .zip from desired caps: /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/appium-app.zip
info: [debug] Unzipping /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/appium-app.zip
info: [debug] Testing zip archive: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app
info: [debug] Creating new appium session 1e51611b-2fb0-4ea2-b0a4-60f8d3109692
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 7.1
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 /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-1npcb8z/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/anuj.vats/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/anuj.vats/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. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Reusing dynamic bootstrap: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“anuj.vat’s iphone”,“platformVersion”:“8.0.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 8.0.2’
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 iPhoneSimulator
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] Checking app install status using: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap isInstalled --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle com.bytearc.SafariLauncher
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 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:52:33.853 instruments[56516:40ef] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:52:40.569 instruments[56519:3cef] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:52:47.296 instruments[56522:3af3] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:52:54.018 instruments[56525:4103] Error fetching kdebug events
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
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 Instruments.onInstrumentsExit (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:389:31)
at null. (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067: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 23665.003 ms - 182
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“platformVersion”:“8.0.2”,“bundleId”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“browserName”:“Safari”,“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”,“platformName”:“iOS”,“deviceName”:“anuj.vat’s iphone”}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Configuring Safari session
info: [debug] Using local .zip from desired caps: /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/appium-app.zip
info: [debug] Unzipping /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/appium-app.zip
info: [debug] Testing zip archive: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app
info: [debug] Creating new appium session d64c5042-47c6-457c-90da-1f032bdf35b8
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 7.1
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 /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/anuj.vats/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/anuj.vats/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. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Reusing dynamic bootstrap: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“anuj.vat’s iphone”,“platformVersion”:“8.0.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 8.0.2’
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 iPhoneSimulator
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] Checking app install status using: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap isInstalled --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle com.bytearc.SafariLauncher
info: [debug] Installing app using cmd: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap install --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle “/var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-56488-z3qjv/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”
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 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:55:09.878 instruments[56573:4507] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:55:16.599 instruments[56576:4103] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:55:23.335 instruments[56579:4103] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 18:55:30.052 instruments[56582:3cef] Error fetching kdebug events
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
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 Instruments.onInstrumentsExit (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:389:31)
at null. (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067: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 26082.015 ms - 182
^C
AMAC02MC13BFH00:server anuj.vats$ node main.js -U 5f9c26353308bb90f7184591a3e45eda30fee5b8
info: Welcome to Appium v1.3.7-beta (REV 545372b782e1b580bc8d0ea5f04be8c1600f9f00)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“platformVersion”:“8.0.2”,“bundleId”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“browserName”:“Safari”,“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”,“platformName”:“iOS”,“deviceName”:“anuj.vat’s iphone”}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Configuring Safari session
info: [debug] Using local .zip from desired caps: /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/appium-app.zip
info: [debug] Unzipping /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/appium-app.zip
info: [debug] Testing zip archive: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app
info: [debug] Creating new appium session 45407d5f-195b-4ebc-995d-303605798869
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 7.1
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 /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/anuj.vats/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/anuj.vats/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. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Reusing dynamic bootstrap: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“anuj.vat’s iphone”,“platformVersion”:“8.0.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 8.0.2’
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 iPhoneSimulator
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] Checking app install status using: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap isInstalled --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle com.bytearc.SafariLauncher
info: [debug] Installing app using cmd: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap install --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle “/var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58052-ryvmbb/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”
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 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 19:42:26.519 instruments[58082:3d0b] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 19:42:33.431 instruments[58085:3b13] Error fetching kdebug events
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 iPhoneSimulator
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7-beta”,“revision”:“545372b782e1b580bc8d0ea5f04be8c1600f9f00”},“isShuttingDown”:false},“sessionId”:“45407d5f-195b-4ebc-995d-303605798869”}
info: <-- GET /wd/hub/status 200 6.766 ms - 183 {“status”:0,“value”:{“build”:{“version”:“1.3.7-beta”,“revision”:“545372b782e1b580bc8d0ea5f04be8c1600f9f00”},“isShuttingDown”:false},“sessionId”:“45407d5f-195b-4ebc-995d-303605798869”}
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 19:42:40.154 instruments[58088:3a13] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 19:42:46.887 instruments[58091:4103] Error fetching kdebug events
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
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 Instruments.onInstrumentsExit (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:389:31)
at null. (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067: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 25472.407 ms - 182
^C
AMAC02MC13BFH00:server anuj.vats$ node main.js -U 5f9c26353308bb90f7184591a3e45eda30fee5b8
AMAC02MC13BFH00:server anuj.vats$ clear

AMAC02MC13BFH00:server anuj.vats$ node main.js -U 5f9c26353308bb90f7184591a3e45eda30fee5b8
info: Welcome to Appium v1.3.7-beta (REV 545372b782e1b580bc8d0ea5f04be8c1600f9f00)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“platformVersion”:“8.0.2”,“bundleId”:"/Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app",“browserName”:“Safari”,“udid”:“5f9c26353308bb90f7184591a3e45eda30fee5b8”,“platformName”:“iOS”,“deviceName”:“anuj.vat’s iphone”}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Configuring Safari session
info: [debug] Using local .zip from desired caps: /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/anuj.vats/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/appium-app.zip
info: [debug] Unzipping /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/appium-app.zip
info: [debug] Testing zip archive: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app
info: [debug] Creating new appium session a827d8c9-abc8-4bda-8c8e-72f1089fc64e
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 7.1
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 /var/folders/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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/xg/7chbw9cx55nb64x5zklxtw59nwxk1g/T/115221-58325-ztxfrm/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/anuj.vats/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/anuj.vats/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. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Reusing dynamic bootstrap: /Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“anuj.vat’s iphone”,“platformVersion”:“8.0.2”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone - Simulator - iOS 8.0.2’
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 iPhoneSimulator
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] Checking app install status using: /Users/anuj.vats/appium/build/fruitstrap/fruitstrap isInstalled --id 5f9c26353308bb90f7184591a3e45eda30fee5b8 --bundle com.bytearc.SafariLauncher
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 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 20:31:23.767 instruments[58354:420f] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 20:31:30.550 instruments[58357:3d0b] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 20:31:37.316 instruments[58360:1a03] Error fetching kdebug events
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 iPhoneSimulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 5f9c26353308bb90f7184591a3e45eda30fee5b8
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.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 5f9c26353308bb90f7184591a3e45eda30fee5b8 /Users/anuj.vats/Library/Developer/Xcode/DerivedData/SafariLauncher-ghlozsahlmnyazgoyoxawlgjbtfl/Build/Products/Debug-iphoneos/SafariLauncher.app -e UIASCRIPT “/Users/anuj.vats/Library/Application Support/appium/bootstrap/bootstrap-71a74de4ce38125c.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-03-21 20:31:44.063 instruments[58363:3c07] Error fetching kdebug events
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
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 Instruments.onInstrumentsExit (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:389:31)
at null. (/Users/anuj.vats/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067: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 23910.651 ms - 182

Go to Settings on device-> Developer -> Enable UI automation …