[iOS] Application launches and then crashes

I am new at this whole automated testing thing, and I picked up the Appium Desktop 1.0.0 beta to try and get started. I downloaded the development .IPA file, got the desired capabilities configured as needed, and launched!

The iPhone simulator loads, the .IPA installs, the WebDriverAgent application installs. WDA launches, then the app launches, and instantly returns right back to the iPhone home screen.

APPIUM LOG:
[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/BenPM/dev/XXXXX-development.ipa",“automationName”:“XCUITest”,“bundleId”:“com.XXXXX.XXXXX”,“deviceName”:“iPhone Simulator”,“noReset”:false,“platformName”:“iOS”,“platformVersion”:“10.2”,“udid”:“2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/BenPM/dev/XXXXX-development.ipa",“automationName”:“XCUITest”,“bundleId”:“com.XXXXX.XXXXX”,“deviceName”:“iPhone Simulator”,“noReset”:false,“platformName”:“iOS”,“platformVersion”:“10.2”,“udid”:“2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1490642383293 (12:19:43 GMT-0700 (PDT))
[Appium] Creating new XCUITestDriver (v2.20.0) session
[Appium] Capabilities:
[Appium] app: ‘/Users/BenPM/dev/XXXXX-development.ipa’
[Appium] automationName: ‘XCUITest’
[Appium] bundleId: ‘com.XXXXX.XXXXX’
[Appium] deviceName: ‘iPhone Simulator’
[Appium] noReset: false
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.2’
[Appium] udid: ‘2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.20.0
[BaseDriver] Session created with session id: b0593dac-e4fc-47f8-9541-7eb1ae2b5119
[XCUITest] Xcode version set to ‘8.2.1’ (tools v8.2.0.0.1.1480973914)
[XCUITest] iOS SDK Version set to ‘10.2’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1490642383447 (12:19:43 GMT-0700 (PDT))
[XCUITest] Changing deviceName from ‘iPhone Simulator’ to ‘iPhone 6’
[iOSSim] Constructing iOS simulator for Xcode version 8.2.1 with udid ‘2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31’
[XCUITest] Determining device to run tests on: udid: ‘2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31’, real device: false
[BaseDriver] Using local app ‘/Users/BenPM/dev/XXXXX-development.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/cn/811bqmyd22j3rdbqg3t0l29r0000gn/T/2017227-93885-4e9ud2.wteghkt9/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/cn/811bqmyd22j3rdbqg3t0l29r0000gn/T/2017227-93885-4e9ud2.wteghkt9/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/cn/811bqmyd22j3rdbqg3t0l29r0000gn/T/2017227-93885-4e9ud2.wteghkt9/Payload/XXXXX.app’
[BaseDriver] Event ‘appConfigured’ logged at 1490642384459 (12:19:44 GMT-0700 (PDT))
[XCUITest] Checking whether app ‘/var/folders/cn/811bqmyd22j3rdbqg3t0l29r0000gn/T/2017227-93885-4e9ud2.wteghkt9/Payload/XXXXX.app’ is actually present on file system
[XCUITest] App is present
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1490642384460 (12:19:44 GMT-0700 (PDT))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1490642384538 (12:19:44 GMT-0700 (PDT))
[iOSLog] Starting iOS 10.2 simulator log capture
[iOSLog] System log path: /Users/BenPM/Library/Logs/CoreSimulator/2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1490642384634 (12:19:44 GMT-0700 (PDT))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31’ not booted. Booting up now
[iOSSim] Killing all iOS Simulators
[iOSSim] Simulator is not running. Continuing…
[iOSSim] Starting simulator with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31
[XCUITest] Installing /var/folders/cn/811bqmyd22j3rdbqg3t0l29r0000gn/T/2017227-93885-4e9ud2.wteghkt9/Payload/XXXXX.app on Simulator with UUID ‘2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31’…
[iOSSim] Simulator booted in 6659ms
[BaseDriver] Event ‘simStarted’ logged at 1490642391475 (12:19:51 GMT-0700 (PDT))
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1490642396764 (12:19:56 GMT-0700 (PDT))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1490642396766 (12:19:56 GMT-0700 (PDT))
[XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing hanging processes
[XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=2B5477E6-B1EE-49C2-B5C2-7EBB291BAD31 -configuration Debug’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[XCUITest] Log file for xcodebuild test: /Users/BenPM/Library/Developer/Xcode/DerivedData/WebDriverAgent-cvqckynzuuktkogfpkkkgyompmoj/Logs/Test/1B452EC9-BB8F-4BA1-9E89-1567CF12146D/Session-WebDriverAgentRunner-2017-03-27_121958-k9mMr3.log
[XCUITest] WebDriverAgent running on ip ‘10.30.252.224’
[XCUITest] WebDriverAgent successfully started after 9047ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1490642405997 (12:20:05 GMT-0700 (PDT))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.XXXXX.XXXXX”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.XXXXX.XXXXX application”,“sessionId”:“B645F39E-D3D6-4580-9064-87AE20A3DC26”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1490642529068 (12:22:09 GMT-0700 (PDT))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.XXXXX.XXXXX”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}

I feel like the key line in the error log is: [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.XXXXX.XXXXX application","sessionId":"B645F39E-D3D6-4580-9064-87AE20A3DC26","status":13} – but I can’t make heads or tails of what this means.