Using app path with space crashed instruments

Device: iPhone 6
XCode: 6.1
Appium: 1.3.4

When I run my script (in Java) with app in a path with no space, it was fine, but after I change only the app path to one with space, instruments crashed.

“app” capability in Java when it failed:
capabilities.setCapability(“app”, “/Users/Jason/a b/StarMobile.ipa”);

Same capability when it succeeded:
capabilities.setCapability(“app”, “/Users/Jason/gitStarMobile/TestScripts/Appium/StarMobileTestScripts/apps/StarMobile.ipa”);

Here is the appium server logs:

2014-12-03 16:55:06:939 - info: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
2014-12-03 16:55:06:941 - info: Appium REST http interface listener started on localhost:4744
2014-12-03 16:55:06:944 - info: [debug] Non-default server args: {"address":"localhost","port":4744,"fullReset":true,"logTimestamp":true,"logNoColors":true}
2014-12-03 16:55:06:944 - info: Console LogLevel: debug
2014-12-03 16:55:17:743 - info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/Jason/a b/StarMobile.ipa","platformVersion":"8.0","platformName":"iOS","deviceName":"iphone6","udid":"a8fbfadd3525ce489aad81aa9f561b849997f5a8"}}
2014-12-03 16:55:17:745 - info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
2014-12-03 16:55:17:748 - info: [debug] Using local .ipa from desired caps: /Users/Jason/a b/StarMobile.ipa
2014-12-03 16:55:17:748 - info: [debug] Copying local zip to tmp dir
2014-12-03 16:55:17:773 - info: [debug] /Users/Jason/a b/StarMobile.ipa copied to /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/appium-app.zip
2014-12-03 16:55:17:795 - info: [debug] Unzipping /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/appium-app.zip
2014-12-03 16:55:17:795 - info: [debug] Testing zip archive: /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/appium-app.zip
2014-12-03 16:55:17:908 - info: [debug] Zip archive tested clean
2014-12-03 16:55:18:142 - info: [debug] Unzip successful
2014-12-03 16:55:18:143 - info: [debug] Using locally extracted app: /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/Payload/StarMobile.app
2014-12-03 16:55:18:144 - info: [debug] Creating new appium session 71210404-501c-439d-b888-dc2866f7fd7f
2014-12-03 16:55:18:146 - info: [debug] Removing any remaining instruments sockets
2014-12-03 16:55:18:147 - info: [debug] Cleaned up instruments socket /tmp/instruments_sock
2014-12-03 16:55:18:147 - info: [debug] Setting Xcode folder
2014-12-03 16:55:18:165 - info: [debug] Setting Xcode version
2014-12-03 16:55:18:685 - info: [debug] Setting iOS SDK Version
2014-12-03 16:55:18:750 - info: [debug] Getting sdk version from xcrun with a timeout
2014-12-03 16:55:18:760 - info: [debug] iOS SDK Version set to 8.1
2014-12-03 16:55:18:760 - info: [debug] Not checking whether simulator is available since we're on a real device
2014-12-03 16:55:18:761 - info: [debug] Detecting automation tracetemplate
2014-12-03 16:55:18:769 - info: [debug] Not auto-detecting udid, running on sim
2014-12-03 16:55:18:771 - info: [debug] Could not parse plist file (as binary) at /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/Payload/StarMobile.app/en.lproj/Localizable.strings
2014-12-03 16:55:18:771 - info: Will try to parse the plist file as XML
`parseFileSync()` is deprecated. Use `parseStringSync()` instead.
2014-12-03 16:55:18:771 - info: [debug] Could not parse plist file (as XML) at /var/folders/l1/chg9skfd4gv5953hbq1tkk0w0000gn/T/114113-99208-17ziulq/Payload/StarMobile.app/en.lproj/Localizable.strings
2014-12-03 16:55:18:771 - warn: Could not parse app Localizable.strings; assuming it doesn't exist
2014-12-03 16:55:18:772 - info: [debug] Getting bundle ID from app
2014-12-03 16:55:18:776 - info: [debug] Parsed app Info.plist (as binary)
2014-12-03 16:55:18:776 - info: [debug] Creating instruments
2014-12-03 16:55:18:776 - 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
2014-12-03 16:55:18:777 - info: [debug] Preparing uiauto bootstrap
2014-12-03 16:55:18:777 - info: [debug] Dynamic bootstrap dir: /Users/Jason/Library/Application Support/appium/bootstrap
2014-12-03 16:55:18:777 - info: [debug] Dynamic env: {"nodePath":"/usr/local/Cellar/node/0.10.32/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"}
2014-12-03 16:55:18:796 - info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
...
2014-12-03 16:55:18:796 - info: [debug] Dynamic bootstrap path: /Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js
2014-12-03 16:55:18:800 - info: [debug] Reusing dynamic bootstrap: /Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js
2014-12-03 16:55:18:802 - info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1","iOSSDKVersion":"8.1","deviceName":"iphone6","platformVersion":"8.0"}
2014-12-03 16:55:18:803 - info: [debug] fixDevice is on
2014-12-03 16:55:18:803 - info: [debug] Final device string is: 'iphone6 (8.0 Simulator)'
2014-12-03 16:55:18:804 - info: [debug] Not setting device type since we're on a real device
2014-12-03 16:55:18:804 - info: [debug] Checking whether we need to set app preferences
2014-12-03 16:55:18:804 - info: [debug] Not setting iOS and app preferences since we're on a real device
2014-12-03 16:55:18:804 - info: [debug] Running ios sim reset flow
2014-12-03 16:55:18:804 - info: [debug] Killing the simulator process
2014-12-03 16:55:18:806 - info: [debug] Killall iOS Simulator
2014-12-03 16:55:18:809 - info: [debug] Killing any other simulator daemons
2014-12-03 16:55:18:837 - info: [debug] On a real device; cannot clean device state
2014-12-03 16:55:18:837 - info: [debug] Not setting locale because we're using a real device
2014-12-03 16:55:18:837 - info: [debug] No iOS / app preferences to set
2014-12-03 16:55:18:838 - info: [debug] Starting iOS device log capture via deviceconsole
2014-12-03 16:55:19:987 - info: [debug] Not pre-launching simulator
2014-12-03 16:55:19:987 - info: [debug] Creating iDevice object with udid a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:19:988 - info: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id a8fbfadd3525ce489aad81aa9f561b849997f5a8 --bundle com.starmobileinc.StarMobileEnterprise
2014-12-03 16:55:20:418 - info: [debug] App is installed.
2014-12-03 16:55:20:419 - info: [debug] fullReset requested. Forcing app install.
2014-12-03 16:55:20:419 - info: [debug] Installing ipa found at /Users/Jason/a b/StarMobile.ipa
2014-12-03 16:55:20:420 - info: [debug] Creating iDevice object with udid a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:22:002 - info: [debug] Bundle found on device, removing before reinstalling.
2014-12-03 16:55:23:577 - info: [debug] Starting command proxy.
2014-12-03 16:55:23:579 - info: [debug] Instruments socket server started at /tmp/instruments_sock
2014-12-03 16:55:23:579 - info: [debug] Starting instruments
2014-12-03 16:55:23:587 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2014-12-03 16:55:23:587 - info: Launching instruments
2014-12-03 16:55:23:592 - info: [debug] Attempting to run app on real device with UDID a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:23:593 - 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 a8fbfadd3525ce489aad81aa9f561b849997f5a8 com.starmobileinc.StarMobileEnterprise -e UIASCRIPT "/Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js" -e UIARESULTSPATH /tmp/appium-instruments
2014-12-03 16:55:23:593 - info: [debug] And extra without-delay env: {}
2014-12-03 16:55:23:593 - info: [debug] And launch timeouts (in ms): {"global":90000}
2014-12-03 16:55:26:078 - info: [debug] [INST STDERR] 2014-12-03 11:55:26.077 instruments[99254:8089069] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2014-12-03 16:55:26:387 - info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.starmobileinc.StarMobileEnterprise'
2014-12-03 16:55:26:409 - info: [debug] [INSTSERVER] Instruments exited with code 253
2014-12-03 16:55:26:410 - info: [debug] Killall instruments
2014-12-03 16:55:26:416 - info: [debug] Instruments crashed on startup
2014-12-03 16:55:26:416 - info: [debug] Attempting to retry launching instruments, this is retry #1
2014-12-03 16:55:26:416 - info: [debug] Killall iOS Simulator
2014-12-03 16:55:31:423 - info: Launching instruments
2014-12-03 16:55:31:424 - info: [debug] Attempting to run app on real device with UDID a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:31:425 - 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 a8fbfadd3525ce489aad81aa9f561b849997f5a8 com.starmobileinc.StarMobileEnterprise -e UIASCRIPT "/Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js" -e UIARESULTSPATH /tmp/appium-instruments
2014-12-03 16:55:31:425 - info: [debug] And extra without-delay env: {}
2014-12-03 16:55:31:426 - info: [debug] And launch timeouts (in ms): {"global":90000}
2014-12-03 16:55:32:369 - info: [debug] [INST STDERR] 2014-12-03 11:55:32.369 instruments[99257:8089138] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2014-12-03 16:55:32:481 - info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.starmobileinc.StarMobileEnterprise'
2014-12-03 16:55:32:509 - info: [debug] [INSTSERVER] Instruments exited with code 253
2014-12-03 16:55:32:510 - info: [debug] Killall instruments
2014-12-03 16:55:32:515 - info: [debug] Instruments crashed on startup
2014-12-03 16:55:32:515 - info: [debug] Attempting to retry launching instruments, this is retry #2
2014-12-03 16:55:32:516 - info: [debug] Killall iOS Simulator
2014-12-03 16:55:37:522 - info: Launching instruments
2014-12-03 16:55:37:524 - info: [debug] Attempting to run app on real device with UDID a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:37:524 - 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 a8fbfadd3525ce489aad81aa9f561b849997f5a8 com.starmobileinc.StarMobileEnterprise -e UIASCRIPT "/Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js" -e UIARESULTSPATH /tmp/appium-instruments
2014-12-03 16:55:37:525 - info: [debug] And extra without-delay env: {}
2014-12-03 16:55:37:526 - info: [debug] And launch timeouts (in ms): {"global":90000}
2014-12-03 16:55:38:423 - info: [debug] [INST STDERR] 2014-12-03 11:55:38.422 instruments[99261:8089223] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2014-12-03 16:55:38:625 - info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.starmobileinc.StarMobileEnterprise'
2014-12-03 16:55:38:650 - info: [debug] [INSTSERVER] Instruments exited with code 253
2014-12-03 16:55:38:650 - info: [debug] Killall instruments
2014-12-03 16:55:38:654 - info: [debug] Instruments crashed on startup
2014-12-03 16:55:38:655 - info: [debug] Attempting to retry launching instruments, this is retry #3
2014-12-03 16:55:38:655 - info: [debug] Killall iOS Simulator
2014-12-03 16:55:43:660 - info: Launching instruments
2014-12-03 16:55:43:662 - info: [debug] Attempting to run app on real device with UDID a8fbfadd3525ce489aad81aa9f561b849997f5a8
2014-12-03 16:55:43:662 - 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 a8fbfadd3525ce489aad81aa9f561b849997f5a8 com.starmobileinc.StarMobileEnterprise -e UIASCRIPT "/Users/Jason/Library/Application Support/appium/bootstrap/bootstrap-d873b979357327a9.js" -e UIARESULTSPATH /tmp/appium-instruments
2014-12-03 16:55:43:663 - info: [debug] And extra without-delay env: {}
2014-12-03 16:55:43:663 - info: [debug] And launch timeouts (in ms): {"global":90000}
2014-12-03 16:55:44:682 - info: [debug] [INST STDERR] 2014-12-03 11:55:44.682 instruments[99265:8089280] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2014-12-03 16:55:44:739 - info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.starmobileinc.StarMobileEnterprise'
2014-12-03 16:55:44:761 - info: [debug] [INSTSERVER] Instruments exited with code 253
2014-12-03 16:55:44:762 - info: [debug] Killall instruments
2014-12-03 16:55:44:766 - info: [debug] Instruments crashed on startup
2014-12-03 16:55:44:767 - info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
2014-12-03 16:55:44:767 - info: [debug] Stopping iOS log capture
2014-12-03 16:55:44:768 - info: [debug] Running ios sim reset flow
2014-12-03 16:55:44:768 - info: [debug] Killing the simulator process
2014-12-03 16:55:44:769 - info: [debug] Killall iOS Simulator
2014-12-03 16:55:44:771 - info: [debug] Killing any other simulator daemons
2014-12-03 16:55:44:808 - info: [debug] fullReset requested. Will try to uninstall the app.
2014-12-03 16:55:46:365 - info: [debug] Removing app using cmd: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap uninstall --id a8fbfadd3525ce489aad81aa9f561b849997f5a8 --bundle com.starmobileinc.StarMobileEnterprise
2014-12-03 16:55:46:766 - error: Could not remove com.starmobileinc.StarMobileEnterprise from device
2014-12-03 16:55:46:766 - info: [debug] Cleaning up appium session
2014-12-03 16:55:46:767 - error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
2014-12-03 16:55:46:768 - info: [debug] Error: Instruments crashed on startup
    at Instruments.onInstrumentsExit (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31)
    at null.<anonymous> (/usr/local/lib/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)
2014-12-03 16:55:46:768 - 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}
2014-12-03 16:55:46:774 - info: <-- POST /wd/hub/session 500 29028.789 ms - 182