[XCUITest] Failed to create WDA session. Retrying...
See original GitHub issueThe problem
when i use the appium desktop 1.0.0. i can’t launch the app on sim. is there anybody can help me. thanks
Environment
- Appium version :1.6.4
- Desktop OS/version used to run Appium: 10.11.6
- Node.js version: 4.1.2
- Mobile platform/version under test: 10.2
- Real device or emulator/simulator: simulator
- xcode: 8.2.1
this is my 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":{"user":"admin","app":"http://127.0.0.1:3000/get_ios_application/TestApp.zip","task_id":"149379079059686000820","test_id":"24","multiple":"false","test_type":"function","browserName":"/","deviceName":"iPhone 6","platformVersion":"10.2","platformName":"iOS","automationName":"XCUITest","bundleId":"com.wen.TestApp","autoLaunch":"true"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"user":"admin","app":"http://127.0.0.1:3000/get_ios_application/TestApp.zip","task_id":"149379079059686000820","test_id":"24","multiple":"false","test_type":"function","browserName":"/","deviceName":"iPhone 6","platformVersion":"10.2","platformName":"iOS","automationName":"XCUITest","bundleId":"com.wen.TestApp","autoLaunch":"true"},null,null,null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1493790811790 (13:53:31 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] user: 'admin'
[Appium] app: 'http://127.0.0.1:3000/get_ios_application/TestApp.zip'
[Appium] task_id: '149379079059686000820'
[Appium] test_id: '24'
[Appium] multiple: 'false'
[Appium] test_type: 'function'
[Appium] browserName: '/'
[Appium] deviceName: 'iPhone 6'
[Appium] platformVersion: '10.2'
[Appium] platformName: 'iOS'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.wen.TestApp'
[Appium] autoLaunch: 'true'
[XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Capability 'autoLaunch' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: user, task_id, test_id, multiple, test_type.
[BaseDriver] Session created with session id: 9f35e417-bdb7-44ed-b34e-4267fa7f923c
[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 1493790815368 (13:53:35 GMT+0800 (CST))
[iOSSim] Constructing iOS simulator for Xcode version 8.2.1 with udid '8D6F134B-7901-49C6-AC6D-8514A2E5D5B8'
[XCUITest] Determining device to run tests on: udid: '8D6F134B-7901-49C6-AC6D-8514A2E5D5B8', real device: false
[BaseDriver] Using downloadable app 'http://127.0.0.1:3000/get_ios_application/TestApp.zip'
[BaseDriver] http://127.0.0.1:3000/get_ios_application/TestApp.zip downloaded to /var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/appium-app.zip
[BaseDriver] Downloaded file type 'application/zip'
[BaseDriver] Downloaded app to '/var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/appium-app.zip'
[BaseDriver] Unzipping /var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/appium-app.zip
[BaseDriver] Testing zip archive: /var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/TestApp.app'
[BaseDriver] Event 'appConfigured' logged at 1493790817168 (13:53:37 GMT+0800 (CST))
[XCUITest] Checking whether app '/var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/TestApp.app' is actually present on file system
[XCUITest] App is present
[BaseDriver] Event 'resetStarted' logged at 1493790817169 (13:53:37 GMT+0800 (CST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[BaseDriver] Event 'resetComplete' logged at 1493790817243 (13:53:37 GMT+0800 (CST))
[iOSLog] Starting iOS 10.2 simulator log capture
[iOSLog] System log path: /Users/thcpc/Library/Logs/CoreSimulator/8D6F134B-7901-49C6-AC6D-8514A2E5D5B8/system.log
[BaseDriver] Event 'logCaptureStarted' logged at 1493790817528 (13:53:37 GMT+0800 (CST))
[XCUITest] Setting up simulator
[iOS] No reason to set locale
[iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid '8D6F134B-7901-49C6-AC6D-8514A2E5D5B8' 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 8D6F134B-7901-49C6-AC6D-8514A2E5D5B8 -ConnectHardwareKeyboard 0
[iOSSim] Simulator booted in 65982ms
[BaseDriver] Event 'simStarted' logged at 1493790883705 (13:54:43 GMT+0800 (CST))
[XCUITest] Installing /var/folders/hw/l2_f4_852sg7czs6hdrk8dlc0000gn/T/201743-1019-329xgs.vznymeipb9/TestApp.app on Simulator with UUID '8D6F134B-7901-49C6-AC6D-8514A2E5D5B8'...
[XCUITest] The app has been installed successfully.
[BaseDriver] Event 'appInstalled' logged at 1493790889247 (13:54:49 GMT+0800 (CST))
[BaseDriver] Event 'wdaStartAttempted' logged at 1493790889252 (13:54:49 GMT+0800 (CST))
[XCUITest] Using WDA path: '/Users/thcpc/Downloads/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Users/thcpc/Downloads/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 /Users/thcpc/Downloads/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8D6F134B-7901-49C6-AC6D-8514A2E5D5B8 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.2' in directory '/Users/thcpc/Downloads/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
[XCUITest] Log file for xcodebuild test: /Users/thcpc/Library/Developer/Xcode/DerivedData/WebDriverAgent-cocifxuxbcvhtcgdllxnfcpddbzw/Logs/Test/8654A51D-29A9-484B-AFC0-5BF1ACBBBC0A/Session-WebDriverAgentRunner-2017-05-03_135455-dGi7Ac.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] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"10.2\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"10.2\",\n \"ip\" : \"11.240.97.181\"\n },\n \"build\" : {\n \"time\" : \"Apr 28 2017 11:21:31\"\n }\n },\n \"sessionId\" : \"CF1364EA-A021-438C-9AB9-8A9CDE788D83\",\n \"status\" : 0\n}"
[XCUITest] WebDriverAgent running on ip '11.240.97.181'
[XCUITest] WebDriverAgent successfully started after 40421ms
[BaseDriver] Event 'wdaSessionAttempted' logged at 1493790929891 (13:55:29 GMT+0800 (CST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.wen.TestApp","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.wen.TestApp application","sessionId":"CF1364EA-A021-438C-9AB9-8A9CDE788D83","status":13}
[XCUITest] Failed to create WDA session. Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1493791052818 (13:57:32 GMT+0800 (CST))
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
[XCUITest] Failed to create WDA session. Retrying - Issues/Bugs
On real device, I removed the WDA app and the app under test and It worked and didn't stuck at retrying. I GUESS...
Read more >Appium (and desktop) unable to launch wda session since ...
To solve this issue, We need to update our appkum on the computer ( should be 1.22.0 or above). To see your version:...
Read more >appium + ios 真机运行时不断闪退重启 - TesterHome
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while ... [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
Read more >webdriverio/webdriverio - Gitter
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command ...
Read more >[XCUITest] Failed to create WDA session. Retrying...
[XCUITest] Failed to create WDA session. Retrying... appium. 20 November 2017 Posted by zusmani-mbo-com. Hi All, I am getting similar error when trying...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try to do not set “bundleId”:“com.wen.TestApp”
The device is saying “Program specified by service does not contain one of the requested architectures”:
Can you try following the advice in https://github.com/appium/appium/issues/5216#issuecomment-238872052