Не запускается приложение в симуляторе - [XCUITest] Failed to create WDA session. Retrying...

Не получается запустить инспектор, приложение не открывается так, как должно.

The server is running
Start New SessionStop Server
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493919251074 (20:34:11 GMT+0300 (MSK))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa’
[Appium] automationName: ‘xcuitest’
[Appium] deviceName: ‘iPhone 6 Plus’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: ff371830-a515-477a-9e49-9e764897bfda
[XCUITest] Xcode version set to ‘8.3.1’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1493919251534 (20:34:11 GMT+0300 (MSK))
[iOSSim] Constructing iOS simulator for Xcode version 8.3.1 with udid ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’
[XCUITest] Determining device to run tests on: udid: ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’, real device: false
[BaseDriver] Using local app ‘/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/Payload/walletkeeper.app’
[BaseDriver] Event ‘appConfigured’ logged at 1493919258820 (20:34:18 GMT+0300 (MSK))
[XCUITest] Checking whether app ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/Payload/walletkeeper.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/Payload/walletkeeper.app’: ‘hk.walletkeeper.app’
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1493919258896 (20:34:18 GMT+0300 (MSK))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1493919259468 (20:34:19 GMT+0300 (MSK))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/Vladislava/Library/Logs/CoreSimulator/F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1493919259970 (20:34:19 GMT+0300 (MSK))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’ 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 F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306
[XCUITest] Reset requested. Removing app with id ‘hk.walletkeeper.app’ from the device
[iOSSim] Simulator booted in 26499ms
[BaseDriver] Event ‘simStarted’ logged at 1493919287817 (20:34:47 GMT+0300 (MSK))
[XCUITest] Installing /var/folders/ty/w0br6bwj1q5cy0sq0yzj5x380000gn/T/201744-55935-1nxnoou.l8pulyp66r/Payload/walletkeeper.app on Simulator with UUID ‘F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1493919295876 (20:34:55 GMT+0300 (MSK))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1493919295880 (20:34:55 GMT+0300 (MSK))
[XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/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/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=F8A48DFD-8FB6-4C45-A3D0-EC3429C0B306 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Output from xcodebuild will not be logged
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /Users/Vladislava/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/AFD8B6B6-39B6-4C11-8175-98C3E0AEFEA8/Session-WebDriverAgentRunner-2017-05-04_203512-M7ss1Y.log
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: “{\n "value" : {\n "state" : "success",\n "os" : {\n "name" : "iOS",\n "version" : "10.3"\n },\n "ios" : {\n "simulatorVersion" : "10.3",\n "ip" : "192.168.1.30"\n },\n "build" : {\n "time" : "May 4 2017 20:03:32"\n }\n },\n "sessionId" : "B351D451-2C8E-45AA-8CA4-3E8D48570772",\n "status" : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘192.168.1.30’
[XCUITest] WebDriverAgent successfully started after 30462ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493919326861 (20:35:26 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493919570864 (20:39:30 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493919814261 (20:43:34 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] ← POST /wd/hub/session - - ms - -
[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493919851171 (20:44:11 GMT+0300 (MSK))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493920057572 (20:47:37 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493920301292 (20:51:41 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] ← POST /wd/hub/session - - ms - -
[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493920451253 (20:54:11 GMT+0300 (MSK))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493920544519 (20:55:44 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493920787717 (20:59:47 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493921030855 (21:03:50 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] ← POST /wd/hub/session - - ms - -
[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/Vladislava/Desktop/Автотесты/Где Деньги 4.1.0.ipa”,“automationName”:“xcuitest”,“deviceName”:“iPhone 6 Plus”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493921051334 (21:04:11 GMT+0300 (MSK))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch hk.walletkeeper.app application”,“sessionId”:“B351D451-2C8E-45AA-8CA4-3E8D48570772”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493921274000 (21:07:54 GMT+0300 (MSK))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“hk.walletkeeper.app”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

Аналогичная проблема.

Если коротко - .ipa приложения не откроются на симуляторе.

Если длинно - у симулятора и девайса разные архитектуры, соответственно, при сборке в xcodebuild указываются разные destination. Для симулятора нужно что-то такое
-destination "platform=iOS Simulator,name=iPhone 7,OS=11.2"
что соберет аппликуху в формате .app для симулятора.

Аппиум тут ни при чем, он честно пытается открыть аппу и ловит креш.

У меня не симулятор.

Но уже все ок.