[XCUITest] Failed to create WDA session. Retrying

Hi Appium Developer team,
I’m running appium 1.6.4, appium GUI 1.5.3
xcode 8.3.1, ios 10.12.4
but I can not launch iOs app from appium GUI although the app is installed successfully.
I also use macaca appium inspector but result is the same, I can not launch the app.

Here is my appium log:

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/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493869547367 (10:45:47 GMT+0700 (+07))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app’
[Appium] deviceName: ‘iPhone Simulator’
[Appium] noReset: true
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.0’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: e5a3b990-9a06-4113-9ecd-d8e22956642a
[XCUITest] Xcode version set to ‘8.3.1’ (tools v8.3.0.0.1.1490382677)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1493869547553 (10:45:47 GMT+0700 (+07))
[XCUITest] Changing deviceName from ‘iPhone Simulator’ to ‘iPhone 6’
[iOSSim] Constructing iOS simulator for Xcode version 8.3.1 with udid ‘866FA269-32A9-428C-B71B-E1866D021E3B’
[XCUITest] Determining device to run tests on: udid: ‘866FA269-32A9-428C-B71B-E1866D021E3B’, real device: false
[BaseDriver] Using local app ‘/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app’
[BaseDriver] Event ‘appConfigured’ logged at 1493869547943 (10:45:47 GMT+0700 (+07))
[XCUITest] Checking whether app ‘/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app’: ‘vn.ait.uploadtest’
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1493869547953 (10:45:47 GMT+0700 (+07))
[XCUITest] Reset: noReset is on. Leaving simulator as is
[BaseDriver] Event ‘resetComplete’ logged at 1493869547954 (10:45:47 GMT+0700 (+07))
[iOSLog] Starting iOS 10.0 simulator log capture
[iOSLog] System log path: /Users/ngocvk/Library/Logs/CoreSimulator/866FA269-32A9-428C-B71B-E1866D021E3B/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1493869548135 (10:45:48 GMT+0700 (+07))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘866FA269-32A9-428C-B71B-E1866D021E3B’ 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 866FA269-32A9-428C-B71B-E1866D021E3B
[iOSSim] Simulator booted in 11272ms
[BaseDriver] Event ‘simStarted’ logged at 1493869559927 (10:45:59 GMT+0700 (+07))
[XCUITest] Installing /Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app on Simulator with UUID ‘866FA269-32A9-428C-B71B-E1866D021E3B’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1493869564018 (10:46:04 GMT+0700 (+07))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1493869564019 (10:46:04 GMT+0700 (+07))
[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=866FA269-32A9-428C-B71B-E1866D021E3B -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.0’ 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
[XCUITest] Log file for xcodebuild test: /Users/ngocvk/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/94CF5C28-01EE-4891-B59C-809101231F52/Session-WebDriverAgentRunner-2017-05-04_104607-JrhA8L.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] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.0”\n },\n “ios” : {\n “simulatorVersion” : “10.0”,\n “ip” : “172.16.1.15”\n },\n “build” : {\n “time” : “May 4 2017 08:58:15”\n }\n },\n “sessionId” : “176FA349-E5BB-4FF3-9B4C-642E004B89E8”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘172.16.1.15’
[XCUITest] WebDriverAgent successfully started after 9901ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493869574057 (10:46:14 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch vn.ait.uploadtest application”,“sessionId”:“176FA349-E5BB-4FF3-9B4C-642E004B89E8”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493869816705 (10:50:16 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch vn.ait.uploadtest application”,“sessionId”:“176FA349-E5BB-4FF3-9B4C-642E004B89E8”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493870059355 (10:54:19 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493870147428 (10:55:47 GMT+0700 (+07))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch vn.ait.uploadtest application”,“sessionId”:“176FA349-E5BB-4FF3-9B4C-642E004B89E8”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493870301880 (10:58:21 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch vn.ait.uploadtest application”,“sessionId”:“176FA349-E5BB-4FF3-9B4C-642E004B89E8”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493870544403 (11:02:24 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/ngocvk/Downloads/app/Payload 2/CreateThumbnailVideo.app",“deviceName”:“iPhone Simulator”,“noReset”:true,“platformName”:“iOS”,“platformVersion”:“10.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1493870747512 (11:05:47 GMT+0700 (+07))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch vn.ait.uploadtest application”,“sessionId”:“176FA349-E5BB-4FF3-9B4C-642E004B89E8”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1493870787065 (11:06:27 GMT+0700 (+07))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“vn.ait.uploadtest”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

Anyone can help me, plz! Thanks.

[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/yyy/Downloads/M-Files.app",“automationName”:“XCUITest”,“deviceName”:“iPhone SE”,“platformName”:“ios”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/yyy/Downloads/M-Files.app",“automationName”:“XCUITest”,“deviceName”:“iPhone SE”,“platformName”:“ios”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1494856162444 (16:49:22 GMT+0300 (EEST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: ‘/Users/yyy/Downloads/M-Files.app’
[Appium] automationName: ‘XCUITest’
[Appium] deviceName: ‘iPhone SE’
[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: b1d829d1-3e5a-43dd-a3ac-2e65a434b1b8
[XCUITest] Xcode version set to ‘8.3.2’ (tools v8.3.2.0.1.1492020469)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1494856163604 (16:49:23 GMT+0300 (EEST))
[iOSSim] Constructing iOS simulator for Xcode version 8.3.2 with udid ‘8B04B4B2-4725-4BB2-93D1-D51026F6CB2B’
[XCUITest] Determining device to run tests on: udid: ‘8B04B4B2-4725-4BB2-93D1-D51026F6CB2B’, real device: false
[BaseDriver] Using local app ‘/Users/yyy/Downloads/M-Files.app’
[BaseDriver] Event ‘appConfigured’ logged at 1494856164350 (16:49:24 GMT+0300 (EEST))
[XCUITest] Checking whether app ‘/Users/yyy/Downloads/M-Files.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/Users/yyy/Downloads/M-Files.app’: ‘com.m-files.M-Files’
[XCUITest] Setting ‘connectHardwareKeyboard’ Simulator option to ‘on’
[BaseDriver] Event ‘resetStarted’ logged at 1494856164358 (16:49:24 GMT+0300 (EEST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1494856164425 (16:49:24 GMT+0300 (EEST))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/yyy/Library/Logs/CoreSimulator/8B04B4B2-4725-4BB2-93D1-D51026F6CB2B/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1494856164521 (16:49:24 GMT+0300 (EEST))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘8B04B4B2-4725-4BB2-93D1-D51026F6CB2B’ 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 8B04B4B2-4725-4BB2-93D1-D51026F6CB2B
[XCUITest] Reset requested. Removing app with id ‘com.m-files.M-Files’ from the device
[iOSSim] Simulator booted in 21670ms
[BaseDriver] Event ‘simStarted’ logged at 1494856186369 (16:49:46 GMT+0300 (EEST))
[XCUITest] Installing /Users/yyy/Downloads/M-Files.app on Simulator with UUID ‘8B04B4B2-4725-4BB2-93D1-D51026F6CB2B’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1494856198497 (16:49:58 GMT+0300 (EEST))
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1494856198500 (16:49:58 GMT+0300 (EEST))
[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=8B04B4B2-4725-4BB2-93D1-D51026F6CB2B -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
[XCUITest] Log file for xcodebuild test: /Users/yyy/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/9BDE553A-E689-4C63-BD27-7223716CA52A/Session-WebDriverAgentRunner-2017-05-15_165001-8sh3a9.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] 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.4.219”\n },\n “build” : {\n “time” : “May 9 2017 16:54:02”\n }\n },\n “sessionId” : “64588C99-406D-4559-BAB8-04933A857E2F”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘192.168.4.219’
[XCUITest] WebDriverAgent successfully started after 12939ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1494856211544 (16:50:11 GMT+0300 (EEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.m-files.M-Files”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.m-files.M-Files application”,“sessionId”:“64588C99-406D-4559-BAB8-04933A857E2F”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1494856463458 (16:54:23 GMT+0300 (EEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.m-files.M-Files”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.m-files.M-Files application”,“sessionId”:“64588C99-406D-4559-BAB8-04933A857E2F”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1494856715340 (16:58:35 GMT+0300 (EEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.m-files.M-Files”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/yyy/Downloads/M-Files.app",“automationName”:“XCUITest”,“deviceName”:“iPhone SE”,“platformName”:“ios”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/yyy/Downloads/M-Files.app",“automationName”:“XCUITest”,“deviceName”:“iPhone SE”,“platformName”:“ios”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1494856767508 (16:59:27 GMT+0300 (EEST))
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.m-files.M-Files application”,“sessionId”:“64588C99-406D-4559-BAB8-04933A857E2F”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1494856967243 (17:02:47 GMT+0300 (EEST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.m-files.M-Files”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}

I was seeing this issue, too, for iOS. I found that I had to delete the webdriver agent from the iOS simulator and then it would launch. Something was getting hung up. Also Hardware > Reboot would help in the simulator. Interested to see if others have some more tips for this issue.

1 Like

You should not be running the Appium 1.5.3 GUI. You should be running this…

1 Like

Using Appium 1.5.3 gui simply for the inspector. There are too many problems with the inspector of the new appium desktop, including using our app in Landscape mode. Until we can use that, we will stick with the older gui.

1 Like

On real device, I removed the WDA app and the app under test and It worked and didn’t stuck at retrying. I GUESS the problem was with the WDA app and only reinstalling this would have been sufficient.

I have the same issue with Appium 1.7.1,
xcode 8.3.3, ios 10.12.5.

when I click on inspector and with following desired capabilities:
{
“platformName”: “iOS”,
“platformVersion”: “10.3”,
“deviceName”: “iPhone Simulator”,
“app”: “/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa”
}

Here is my appium log:
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 6 ms - 40
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa",“deviceName”:“iPhone Simulator”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa",“deviceName”:“iPhone Simulator”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1513703856706 (12:17:36 GMT-0500 (EST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] app: ‘/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa’
[Appium] deviceName: ‘iPhone Simulator’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Session created with session id: d90e3e45-ec18-46d3-82fd-1c66b6af060b
[XCUITest] Xcode version set to ‘8.3.3’ (tools v9.2.0.0.1.1510905681)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1513703856858 (12:17:36 GMT-0500 (EST))
[XCUITest] Changing deviceName from ‘iPhone Simulator’ to ‘iPhone 6’
[iOSSim] Constructing iOS simulator for Xcode version 8.3.3 with udid ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’
[XCUITest] Determining device to run tests on: udid: ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’, real device: false
[BaseDriver] Using local app ‘/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/Payload/PokerStars.app’
[BaseDriver] Event ‘appConfigured’ logged at 1513703867222 (12:17:47 GMT-0500 (EST))
[XCUITest] Checking whether app ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/Payload/PokerStars.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/Payload/PokerStars.app’: ‘com.pokerstars.PokerStarsCOM’
[BaseDriver] Event ‘resetStarted’ logged at 1513703867241 (12:17:47 GMT-0500 (EST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1513703867337 (12:17:47 GMT-0500 (EST))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/rr_admin/Library/Logs/CoreSimulator/F3016D4E-5F0A-4F54-8592-18D2588A4800/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1513703867439 (12:17:47 GMT-0500 (EST))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[iOSSim] The count of running Simulator UI client instances is 0
[iOSSim] Killing all iOS Simulators
[iOSSim] Simulator is not running. Continuing…
[iOSSim] Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID F3016D4E-5F0A-4F54-8592-18D2588A4800 -ConnectHardwareKeyboard 1
[iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Simulator with UDID F3016D4E-5F0A-4F54-8592-18D2588A4800 booted in 15 seconds
[BaseDriver] Event ‘simStarted’ logged at 1513703882983 (12:18:02 GMT-0500 (EST))
[XCUITest] Reset requested. Removing app with id ‘com.pokerstars.PokerStarsCOM’ from the device
[XCUITest] Installing ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-1p6ow8c.xclwka9k9/Payload/PokerStars.app’ on Simulator with UUID ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1513703892840 (12:18:12 GMT-0500 (EST))
[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] Capability ‘useNewWDA’ set to false, so trying to reuse currently running WDA instance at ‘http://localhost:8100/
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] WDA is not listening at ‘http://localhost:8100/’. Rebuilding…
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1513703892857 (12:18:12 GMT-0500 (EST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing running processes ‘xcodebuild.*F3016D4E-5F0A-4F54-8592-18D2588A4800, iproxy 8100, F3016D4E-5F0A-4F54-8592-18D2588A4800.*XCTRunner’ for the device F3016D4E-5F0A-4F54-8592-18D2588A4800…
[XCUITest] ‘pgrep -nif xcodebuild.*F3016D4E-5F0A-4F54-8592-18D2588A4800’ didn’t detect any matching processes. Return code: 1
[XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[XCUITest] ‘pgrep -nif F3016D4E-5F0A-4F54-8592-18D2588A4800.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[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=F3016D4E-5F0A-4F54-8592-18D2588A4800 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. To see xcode logging, use ‘showXcodeLog’ desired capability
[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
[XCUITest] Log file for xcodebuild test: /Users/rr_admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/A72C09EE-DBFB-41C9-B3C0-C7F039B04C07/Session-WebDriverAgentRunner-2017-12-19_121814-mpxpfv.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] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.3.1”\n },\n “ios” : {\n “simulatorVersion” : “10.3.1”,\n “ip” : “10.30.0.171”\n },\n “build” : {\n “time” : “Dec 15 2017 16:46:07”\n }\n },\n “sessionId” : “73D00511-33F6-4B8B-8D2C-038C2F303C0D”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘10.30.0.171’
[XCUITest] WebDriverAgent successfully started after 8649ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513703901595 (12:18:21 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.pokerstars.PokerStarsCOM application”,“sessionId”:“73D00511-33F6-4B8B-8D2C-038C2F303C0D”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704144230 (12:22:24 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.pokerstars.PokerStarsCOM application”,“sessionId”:“73D00511-33F6-4B8B-8D2C-038C2F303C0D”,“status”:13}
[XCUITest] Failed to create WDA session. Retrying…
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704386868 (12:26:26 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[HTTP] <-- POST /wd/hub/session - - ms - -
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa",“deviceName”:“iPhone Simulator”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa",“deviceName”:“iPhone Simulator”,“platformName”:“iOS”,“platformVersion”:“10.3”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1513704456782 (12:27:36 GMT-0500 (EST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] app: ‘/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa’
[Appium] deviceName: ‘iPhone Simulator’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Session created with session id: 8eb48395-1863-4e63-b9c4-a372e75b6ae6
[XCUITest] Xcode version set to ‘8.3.3’ (tools v9.2.0.0.1.1510905681)
[XCUITest] iOS SDK Version set to ‘10.3’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1513704456836 (12:27:36 GMT-0500 (EST))
[XCUITest] Changing deviceName from ‘iPhone Simulator’ to ‘iPhone 6’
[iOSSim] Constructing iOS simulator for Xcode version 8.3.3 with udid ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’
[XCUITest] Determining device to run tests on: udid: ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’, real device: false
[BaseDriver] Using local app ‘/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa’
[BaseDriver] Copying local zip to tmp dir
[BaseDriver] Unzipping /var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/Payload/PokerStars.app’
[BaseDriver] Event ‘appConfigured’ logged at 1513704466006 (12:27:46 GMT-0500 (EST))
[XCUITest] Checking whether app ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/Payload/PokerStars.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/Payload/PokerStars.app’: ‘com.pokerstars.PokerStarsCOM’
[BaseDriver] Event ‘resetStarted’ logged at 1513704466031 (12:27:46 GMT-0500 (EST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event ‘resetComplete’ logged at 1513704466200 (12:27:46 GMT-0500 (EST))
[iOSLog] Starting iOS 10.3 simulator log capture
[iOSLog] System log path: /Users/rr_admin/Library/Logs/CoreSimulator/F3016D4E-5F0A-4F54-8592-18D2588A4800/system.log
[BaseDriver] Event ‘logCaptureStarted’ logged at 1513704466313 (12:27:46 GMT-0500 (EST))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[iOSSim] The count of running Simulator UI client instances is 1
[iOSSim] Both Simulator with UDID F3016D4E-5F0A-4F54-8592-18D2588A4800 and the UI client are currently running
[BaseDriver] Event ‘simStarted’ logged at 1513704466704 (12:27:46 GMT-0500 (EST))
[XCUITest] Reset requested. Removing app with id ‘com.pokerstars.PokerStarsCOM’ from the device
[XCUITest] Installing ‘/var/folders/ww/wyrytd4x4tb6kjwp67z0pfwc0000gp/T/20171119-6970-tqqhqw.r3cui8uxr/Payload/PokerStars.app’ on Simulator with UUID ‘F3016D4E-5F0A-4F54-8592-18D2588A4800’…
[XCUITest] The app has been installed successfully.
[BaseDriver] Event ‘appInstalled’ logged at 1513704474066 (12:27:54 GMT-0500 (EST))
[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] Capability ‘useNewWDA’ set to false, so trying to reuse currently running WDA instance at ‘http://localhost:8100/
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] WDA is not listening at ‘http://localhost:8100/’. Rebuilding…
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1513704477082 (12:27:57 GMT-0500 (EST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing running processes ‘xcodebuild.*F3016D4E-5F0A-4F54-8592-18D2588A4800, iproxy 8100, F3016D4E-5F0A-4F54-8592-18D2588A4800.*XCTRunner’ for the device F3016D4E-5F0A-4F54-8592-18D2588A4800…
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGINT’
[XCUITest] ‘pgrep -nif xcodebuild.*F3016D4E-5F0A-4F54-8592-18D2588A4800’ didn’t detect any matching processes. Return code: 1
[XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[XCUITest] Failed to create WDA session. Retrying…
[XCUITest] ‘pgrep -nif F3016D4E-5F0A-4F54-8592-18D2588A4800.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[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=F3016D4E-5F0A-4F54-8592-18D2588A4800 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. To see xcode logging, use ‘showXcodeLog’ desired capability
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704478362 (12:27:58 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /Users/rr_admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/67AFDCB3-AD39-4019-B97C-20AF90517539/Session-WebDriverAgentRunner-2017-12-19_122758-eqerHB.log
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704479375 (12:27:59 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704480379 (12:28:00 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704481387 (12:28:01 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704482394 (12:28:02 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704483413 (12:28:03 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704484418 (12:28:04 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[XCUITest] Failed to create WDA session. Retrying…
[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.1”\n },\n “ios” : {\n “simulatorVersion” : “10.3.1”,\n “ip” : “10.30.0.171”\n },\n “build” : {\n “time” : “Dec 15 2017 16:46:07”\n }\n },\n “sessionId” : “C703473A-D996-410B-A36A-35F5881CCE7A”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘10.30.0.171’
[XCUITest] WebDriverAgent successfully started after 7525ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704485004 (12:28:05 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1513704485424 (12:28:05 GMT-0500 (EST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.pokerstars.PokerStarsCOM”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
Appium server stopped successfully

Can’t run an .ipa on Simulator. You’ll have to run on a real device or ask for an app compiled for Simulator.

@wreed
Thanks for the quick reply. If I install .ipa on a real device do I need to pay the fee (about $99/year) to have iPhone Developer Program Membership?

I believe you can just create a free account to do this:

However, the developer of the app should be able to add you to their account for testing.

@wreed
Thanks for that information.

I try to install the app on a real device but I get the error like the following :
“[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.”

I don’t see WebDriverAgentRunner application on my device. Could you please let me know how it looks like? If it is just an app with WebDriverAgentRunner or WebDriverAgent I cannot find it on the real device.

In the above link “https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md” I should add the following in desired capabilities. I checked the Appium server capabilities doc I don’t see the following parameters defined. If I have to add them where I can find the value for ?
{
“xcodeOrgId”: “”,
“xcodeSigningId”: “iPhone Developer”
}

@wreed

based on the link “https://appium.readthedocs.io/en/stable/en/appium-setup/real-devices-ios/” the “Team ID” is a unique 10-character string generated by Apple that is assigned to your team. You can find your Team ID using your developer account. Does that mean I still have to pay for the apple developer program membership?
{
“xcodeOrgId”: “”,
“xcodeSigningId”: “iPhone Developer”
}

I didn’t know the answer to this problem, so I just googled it. This seems to be a good link:

@wreed
Mac 10.12.5, appium 1.7.1 with a real device which is an iphone5.

I have done step by step in the link (https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md) but I still get the following error in the log:
“[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.”

The desired capabilities are:
{
“platformName”: “iOS”,
“platformVersion”: “10.3”,
“deviceName”: “iPhone 5”,
“app”: “/Volumes/d$/build/iOS/PokerStarsCOM_QR.ipa”,
“udid”: “60********************************66",
“xcodeSigningId”: “iPhone Developer”,
“xcodeOrgId”: "D6
3P”,
“updateWDABundleId”: “com.facebook.WebDriverAgentLib”
}

I am not sure “upodateWDABundleId” value but I get the same error when I remove that capability. I don’t see WebDriverAgentRunner app installed on my phone so I just reboot my phone but I get the same error again after rebooting. I cannot go anywhere from now. Please help!

@wreed
1 more thing, based on the following link:


I could successfully run the following command from terminal:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=’ test

I always just follow these instructions: