Failed to start an Appium session, err was: Error: Instruments crashed on startup

Hello,

I’m totally new to Appium, so sorry in advance if this is a known issue.
I’m having an issue with an App that I’m working with.

Here is the LOG:
info: Welcome to Appium v1.3.4 (REV 565894710295e75ca172220ebb8bb9960bcd7681)

info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“app”:"/Users/jiff/Desktop/Incentives.app",“launchTimeout”:“90000”,“deviceName”:“iPhone 5”,“defaultCommandTimeout”:7200,“isolateSimDevice”:true}
info: Console LogLevel: debug

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

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

info: <-- GET /wd/hub/status 200 6.409 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.4”,“revision”:“565894710295e75ca172220ebb8bb9960bcd7681”}}}

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

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

info: <-- GET /wd/hub/status 200 1.381 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.4”,“revision”:“565894710295e75ca172220ebb8bb9960bcd7681”}}}

info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 0.808 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.1”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“iPhone 5”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/720.1.1 Darwin/14.0.0 (x86_64)
info: [debug] Using local app from command line: /Users/jiff/Desktop/Incentives.app
info: [debug] Creating new appium session 1ea92676-f362-41fe-a267-588399b2b62d
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.1

info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}

info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] iOS sim UDID is 0FF4B55F-5215-4E9B-9374-8A6E5AF5F070
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/jiff/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/usr/local/Cellar/node/0.10.34/bin/node",“commandProxyClientPath”:"/Users/jiff/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“oneByOne”}

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

info: [debug] Dynamic bootstrap path: /Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js
info: [debug] Reusing dynamic bootstrap: /Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] We’re on iOS7.1+ so forcing defaultDevice on
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“8.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (8.1 Simulator)’
info: [debug] Parsed app Info.plist (as binary)

info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
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] Cleaning sim data files
info: Executing: xcrun simctl erase 0FF4B55F-5215-4E9B-9374-8A6E5AF5F070 with timeout 2000

info: [debug] Cleaning app data files

warn: Applications directory /Users/jiff/Library/Developer/CoreSimulator/Devices/0FF4B55F-5215-4E9B-9374-8A6E5AF5F070/data/Containers/Data/Application doesn’t exist. Have you run this simulator before?
warn: Applications directory /Users/jiff/Library/Developer/CoreSimulator/Devices/0FF4B55F-5215-4E9B-9374-8A6E5AF5F070/data/Containers/Bundle/Application doesn’t exist. Have you run this simulator before?
info: Couldn’t find app directories to delete. Probably it’s not installed

info: [debug] Isolating the requested simulator by deleting all others
info: Executing: xcrun simctl list devices with timeout 0

info: [debug] Not setting locale

info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 8.* simulator log capture

info: [debug] Not pre-launching simulator

info: [debug] No device id or app, not installing to real device.
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 iPhone 5 (8.1 Simulator)
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 “iPhone 5 (8.1 Simulator)” /Users/jiff/Desktop/Incentives.app -e UIASCRIPT “/Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {“DYLD_INSERT_LIBRARIES”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {“global”:90000}

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

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

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: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.4”,“revision”:“565894710295e75ca172220ebb8bb9960bcd7681”},“isShuttingDown”:false},“sessionId”:“1ea92676-f362-41fe-a267-588399b2b62d”}

info: <-- GET /wd/hub/status 200 15.418 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.4”,“revision”:“565894710295e75ca172220ebb8bb9960bcd7681”},“isShuttingDown”:false},“sessionId”:“1ea92676-f362-41fe-a267-588399b2b62d”}

info: Launching instruments

info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator)
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 “iPhone 5 (8.1 Simulator)” /Users/jiff/Desktop/Incentives.app -e UIASCRIPT “/Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {“DYLD_INSERT_LIBRARIES”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {“global”:90000}

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

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 8.) : Failed to launch process with bundle identifier ‘com.jiff.incentives2-ent’

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] Got the FBSOpenApplicationError, not killing the sim but leaving it open so the app will launch

info: Launching instruments

info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator)
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 “iPhone 5 (8.1 Simulator)” /Users/jiff/Desktop/Incentives.app -e UIASCRIPT “/Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {“DYLD_INSERT_LIBRARIES”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {“global”:90000}

info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Failed looking up pid of launched process

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

info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #3
info: [debug] Killall iOS Simulator

info: Launching instruments

info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator)
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 “iPhone 5 (8.1 Simulator)” /Users/jiff/Desktop/Incentives.app -e UIASCRIPT “/Users/jiff/Library/Application Support/appium/bootstrap/bootstrap-02c3e3a15de203d1.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {“DYLD_INSERT_LIBRARIES”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Users/jiff/appium/node_modules/appium-instruments/thirdparty/iwd6"}
info: [debug] And launch timeouts (in ms): {“global”:90000}

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

info: [debug] [INST STDERR] Instruments Usage Error : Timed out waiting for device to boot: “iPhone 5 (8.1 Simulator)”

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] Cleaning sim data files
info: Executing: xcrun simctl erase 0FF4B55F-5215-4E9B-9374-8A6E5AF5F070 with timeout 2000

info: [debug] Cleaning app data files

warn: Applications directory /Users/jiff/Library/Developer/CoreSimulator/Devices/0FF4B55F-5215-4E9B-9374-8A6E5AF5F070/data/Containers/Data/Application doesn’t exist. Have you run this simulator before?
warn: Applications directory /Users/jiff/Library/Developer/CoreSimulator/Devices/0FF4B55F-5215-4E9B-9374-8A6E5AF5F070/data/Containers/Bundle/Application doesn’t exist. Have you run this simulator before?
info: Couldn’t find app directories to delete. Probably it’s not installed
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/jiff/appium/node_modules/appium-instruments/lib/instruments.js:389:31)
at null. (/Users/jiff/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820: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 60836.951 ms - 182

Thanks,
Priya.

Even I am facing same problem can someone in group help me out ?

Enter AppiumTest.setUp()
Enter AppiumTest.startAppiumServer()
Exit AppiumTest.startAppiumServer()
e[36minfoe[39m: Welcome to Appium v1.3.3 (REV 34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78)
e[36minfoe[39m: Appium REST http interface listener started on 127.0.0.1:4723
e[36minfoe[39m: [debug] Non-default server args: {“address”:“127.0.0.1”,“noReset”:true}
e[36minfoe[39m: Console LogLevel: debug
Appium driver port address --> http://127.0.0.1:4723/wd/hub
e[36minfoe[39m: e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m e[90m{“desiredCapabilities”:{“app”:“cisco.MasterFlix”,“platformName”:“ios”,“deviceName”:“iOS”,“udid”:“5336ce7bb0d4355e7f093f7cdfa4f8226840acd3”}}e[39m
e[36minfoe[39m: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
e[36minfoe[39m: [debug] App is an iOS bundle, will attempt to run as pre-existing
e[36minfoe[39m: [debug] Creating new appium session 3506046e-2c5e-44fc-a25b-8c4473c44332
e[36minfoe[39m: [debug] Removing any remaining instruments sockets
e[36minfoe[39m: [debug] Cleaned up instruments socket /tmp/instruments_sock
e[36minfoe[39m: [debug] Setting Xcode folder
e[36minfoe[39m: [debug] Setting Xcode version
e[36minfoe[39m: [debug] Setting iOS SDK Version
e[36minfoe[39m: [debug] Getting sdk version from xcrun with a timeout
e[36minfoe[39m: [debug] iOS SDK Version set to 7.1
e[36minfoe[39m: [debug] Not checking whether simulator is available since we’re on a real device
e[36minfoe[39m: [debug] Detecting automation tracetemplate
e[36minfoe[39m: [debug] Not auto-detecting udid, running on sim
e[36minfoe[39m: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/cisco.MasterFlix/en.lproj/Localizable.strings
e[36minfoe[39m: Will try to parse the plist file as XML
e[36minfoe[39m: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/cisco.MasterFlix/en.lproj/Localizable.strings
e[33mwarne[39m: Could not parse app Localizable.strings; assuming it doesn’t exist
e[36minfoe[39m: [debug] Creating instruments
parseFileSync() is deprecated. Use parseStringSync() instead.
e[36minfoe[39m: [debug] Preparing uiauto bootstrap
e[36minfoe[39m: [debug] Dynamic bootstrap dir: /Users/rajgopal/Library/Application Support/appium/bootstrap
e[36minfoe[39m: [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,“sendKeyStrategy”:“grouped”}
e[36minfoe[39m: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

e[36minfoe[39m: [debug] Dynamic bootstrap path: /Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js
e[36minfoe[39m: [debug] Reusing dynamic bootstrap: /Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js
e[36minfoe[39m: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“5.1”,“iOSSDKVersion”:“7.1”,“deviceName”:“iOS”,“platformVersion”:null}
e[36minfoe[39m: [debug] fixDevice is on
e[36minfoe[39m: [debug] Fixing device. Changed from: “iPhone - Simulator - iOS 7.1” to: “iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1”
e[36minfoe[39m: [debug] Final device string is: ‘iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1’
e[36minfoe[39m: [debug] Not setting device type since we’re on a real device
e[36minfoe[39m: [debug] Checking whether we need to set app preferences
e[36minfoe[39m: [debug] Not setting iOS and app preferences since we’re on a real device
e[36minfoe[39m: [debug] Reset not set, not ending sim or cleaning up app state
e[36minfoe[39m: [debug] Not setting locale because we’re using a real device
e[36minfoe[39m: [debug] No iOS / app preferences to set
e[36minfoe[39m: [debug] Starting iOS device log capture via deviceconsole
e[36minfoe[39m: [debug] Not pre-launching simulator
e[36minfoe[39m: [debug] Creating iDevice object with udid 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3
e[36minfoe[39m: [debug] Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
e[36minfoe[39m: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3 --bundle cisco.MasterFlix
e[36minfoe[39m: [debug] App is installed.
e[36minfoe[39m: [debug] fullReset not requested. No need to install.
e[36minfoe[39m: [debug] Starting command proxy.
e[36minfoe[39m: [debug] Instruments socket server started at /tmp/instruments_sock
e[36minfoe[39m: [debug] Starting instruments
e[36minfoe[39m: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
e[36minfoe[39m: Launching instruments
e[36minfoe[39m: [debug] Attempting to run app on real device with UDID 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3
e[36minfoe[39m: [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 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3 cisco.MasterFlix -e UIASCRIPT “/Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js” -e UIARESULTSPATH /tmp/appium-instruments
e[36minfoe[39m: [debug] And extra without-delay env: {}
e[36minfoe[39m: [debug] And launch timeouts (in ms): {“global”:90000}
e[36minfoe[39m: [debug] e[33m[INST STDERR] 2015-07-06 17:02:51.668 instruments[1880:52228] Error fetching kdebug eventse[39m
e[36minfoe[39m: [debug] e[90m[INSTSERVER] Instruments exited with code 253e[39m
e[36minfoe[39m: [debug] Killall instruments
e[36minfoe[39m: [debug] Instruments crashed on startup
e[36minfoe[39m: [debug] Attempting to retry launching instruments, this is retry #1
e[36minfoe[39m: [debug] Killall iPhoneSimulator
e[36minfoe[39m: Launching instruments
e[36minfoe[39m: [debug] Attempting to run app on real device with UDID 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3
e[36minfoe[39m: [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 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3 cisco.MasterFlix -e UIASCRIPT “/Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js” -e UIARESULTSPATH /tmp/appium-instruments
e[36minfoe[39m: [debug] And extra without-delay env: {}
e[36minfoe[39m: [debug] And launch timeouts (in ms): {“global”:90000}
e[36minfoe[39m: [debug] e[33m[INST STDERR] 2015-07-06 17:02:58.374 instruments[1883:52313] Error fetching kdebug eventse[39m
e[36minfoe[39m: [debug] e[90m[INSTSERVER] Instruments exited with code 253e[39m
e[36minfoe[39m: [debug] Killall instruments
e[36minfoe[39m: [debug] Instruments crashed on startup
e[36minfoe[39m: [debug] Attempting to retry launching instruments, this is retry #2
e[36minfoe[39m: [debug] Killall iPhoneSimulator
e[36minfoe[39m: Launching instruments
e[36minfoe[39m: [debug] Attempting to run app on real device with UDID 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3
e[36minfoe[39m: [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 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3 cisco.MasterFlix -e UIASCRIPT “/Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js” -e UIARESULTSPATH /tmp/appium-instruments
e[36minfoe[39m: [debug] And extra without-delay env: {}
e[36minfoe[39m: [debug] And launch timeouts (in ms): {“global”:90000}
e[36minfoe[39m: [debug] e[33m[INST STDERR] 2015-07-06 17:03:05.077 instruments[1886:52371] Error fetching kdebug eventse[39m
e[36minfoe[39m: [debug] e[90m[INSTSERVER] Instruments exited with code 253e[39m
e[36minfoe[39m: [debug] Killall instruments
e[36minfoe[39m: [debug] Instruments crashed on startup
e[36minfoe[39m: [debug] Attempting to retry launching instruments, this is retry #3
e[36minfoe[39m: [debug] Killall iPhoneSimulator
e[36minfoe[39m: Launching instruments
e[36minfoe[39m: [debug] Attempting to run app on real device with UDID 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3
e[36minfoe[39m: [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 5336ce7bb0d4355e7f093f7cdfa4f8226840acd3 cisco.MasterFlix -e UIASCRIPT “/Users/rajgopal/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js” -e UIARESULTSPATH /tmp/appium-instruments
e[36minfoe[39m: [debug] And extra without-delay env: {}
e[36minfoe[39m: [debug] And launch timeouts (in ms): {“global”:90000}
e[36minfoe[39m: [debug] e[33m[INST STDERR] 2015-07-06 17:03:11.776 instruments[1889:52426] Error fetching kdebug eventse[39m
e[36minfoe[39m: [debug] e[90m[INSTSERVER] Instruments exited with code 253e[39m
e[36minfoe[39m: [debug] Killall instruments
e[36minfoe[39m: [debug] Instruments crashed on startup
e[36minfoe[39m: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
e[36minfoe[39m: [debug] Stopping iOS log capture
e[36minfoe[39m: [debug] Reset not set, not ending sim or cleaning up app state
e[36minfoe[39m: [debug] Cleaning up appium session
e[31merrore[39m: Failed to start an Appium session, err was: Error: Instruments crashed on startup
e[36minfoe[39m: [debug] Error: Instruments crashed on startup
at Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31)
at null. (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
e[36minfoe[39m: [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}

Go to Setting on device-> Developer -> Enable UI automation

@Priya @archana Did you find any solution for above issue…
If you got the solution … share to me also, because even i got a same issue.

What if I am running a iOS Simulator? What to do?