appium: [XCUITest] Failed to create WDA session. Retrying...

The 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))

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (4 by maintainers)

Most upvoted 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”:

[iOSLog] [IOS_SYSLOG_ROW] Aug 4 21:22:41 bmbpro assertiond[10625]: Submitted job with label: UIKitApplication:pre.app.gh1[0xb14c][10625]
[iOSLog] [IOS_SYSLOG_ROW] Aug 4 21:22:41 bmbpro com.apple.CoreSimulator.SimDevice.417C71EE-8972-46C5-8908-3BA003B07199.launchd_sim[10603] (UIKitApplication:pre.app.gh1[0xb14c][10625][10736]): 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