Error: Instruments crash on startup

I have not been able to successfully run automation on an iOS device yet! My latest problem is instruments crashing on startup.

-I’ve cleared the logs

  • Reset my machine and phone
  • ran ./reset.sh

please help!

| => appium -U auto --pre-launch --native-instruments-lib --platform-name “iOS” --app “/Users/Robert/Automation/iOSBuilds/LAF2.ipa”
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app
info: [debug] Using local .ipa from command line: /Users/Robert/Automation/iOSBuilds/LAF2.ipa
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/Robert/Automation/iOSBuilds/LAF2.ipa copied to /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/appium-app.zip
info: [debug] Unzipping /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/appium-app.zip
info: [debug] Testing zip archive: /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/Payload/LA Fitness.app
info: [debug] Creating new appium session e97a5316-b7de-4281-a51f-66017f8cb223
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] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Auto-detecting iOS udid…
info: [debug] Detected udid as 44bff347e9e102280431b48fae67e6dc90e015f3
info: [debug] Could not parse plist file (as binary) at /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/Payload/LA Fitness.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
parseFileSync() is deprecated. Use parseStringSync() instead.
info: [debug] Could not parse plist file (as XML) at /var/folders/bl/jp1bbf814jb087bpcsv5s77w0000gn/T/115013-864-rlrcm/Payload/LA Fitness.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/Robert/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:“/usr/local/bin/node”,“commandProxyClientPath”:“/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js”,“instrumentsSock”:“/tmp/instruments_sock”,“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D…ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js
info: [debug] Reusing dynamic bootstrap: /Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:null,“platformVersion”:null}
info: [debug] fixDevice is on
info: [debug] Fixing device. Changed from: “iPhone Simulator (8.1 Simulator)” to: “iPhone 6 (8.1 Simulator)”
info: [debug] Final device string is: ‘iPhone 6 (8.1 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 44bff347e9e102280431b48fae67e6dc90e015f3
info: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 44bff347e9e102280431b48fae67e6dc90e015f3 --bundle com.lafitness.lafitness
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 44bff347e9e102280431b48fae67e6dc90e015f3
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 44bff347e9e102280431b48fae67e6dc90e015f3 com.lafitness.lafitness -e UIASCRIPT “/Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.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: Launching instruments
info: [debug] Attempting to run app on real device with UDID 44bff347e9e102280431b48fae67e6dc90e015f3
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 44bff347e9e102280431b48fae67e6dc90e015f3 com.lafitness.lafitness -e UIASCRIPT “/Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.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 #2
info: [debug] Killall iOS Simulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 44bff347e9e102280431b48fae67e6dc90e015f3
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 44bff347e9e102280431b48fae67e6dc90e015f3 com.lafitness.lafitness -e UIASCRIPT “/Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.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 #3
info: [debug] Killall iOS Simulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID 44bff347e9e102280431b48fae67e6dc90e015f3
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 44bff347e9e102280431b48fae67e6dc90e015f3 com.lafitness.lafitness -e UIASCRIPT “/Users/Robert/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.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] 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
___________________ | ~/automation/appium @ Roberts-MacBook-Pro-5 (Robert)
| =>