Skip to content

Instantly share code, notes, and snippets.

@alvarolgn
Created November 29, 2022 10:05
Show Gist options
  • Save alvarolgn/548b135f5fe85d23b07a6600a648701c to your computer and use it in GitHub Desktop.
Save alvarolgn/548b135f5fe85d23b07a6600a648701c to your computer and use it in GitHub Desktop.
iOS real device not working with appium device farm + usePrebuiltWDA
[debug] [ADB] Getting connected devices
[debug] [ADB] No connected devices have been detected
[device-farm] IOS Device details for 0680470b5c71bXXX418f761c1b48466b39f14fXX already available
[debug] [HTTP] Request idempotency key: 737ad955-04b2-45fc-b8b5-6b5caf766f4b
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"appium:language":"es","appium:locale":"ES","platformName":"iOS","appium:newCommandTimeout":650,"appium:automationName":"XCUITest","appium:platformVersion":"15.4","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:appWaitDuration":40000,"appium:app":"/tmp/iOS-Enterprise-ES_1.ipa","appium:udid":"0680470b5c71bXXX418f761c1b48466b39f14fXX","appium:udids":"0680470b5c71bXXX418f761c1b48466b39f14fXX","appium:derivedDataPath":"/Users/CX02592/PycharmProjects/niji_for_home_qa/resources/webdriver-agent","appium:iPhoneOnly":true,"appium:usePrebuiltWDA":true,"appium:useNewWDA":false,"appium:showXcodeLog":true,"appium:safariGarbageCollect":true,"appium:wdaEventloopIdleDelay":10}]},"desiredCapabilities":{"language":"es","locale":"ES","platformName":"iOS","newCommandTimeout":650,"automationName":"XCUITest","platformVersion":"15.4","unicodeKeyboard":true,"resetKeyboard":true,"appWaitDuration":40000,"app":"/tmp/iOS-Enterprise-ES_1.ipa","udid":"0680470b5c71bda3418f761c1b48466b39f...
[debug] [AppiumDriver@3d61] Calling AppiumDriver.createSession() with args: [{"language":"es","locale":"ES","platformName":"iOS","newCommandTimeout":650,"automationName":"XCUITest","platformVersion":"15.4","unicodeKeyboard":true,"resetKeyboard":true,"appWaitDuration":40000,"app":"/tmp/iOS-Enterprise-ES_1.ipa","udid":"0680470b5c71bXXX418f761c1b48466b39f14fXX","udids":"0680470b5c71bXXX418f761c1b48466b39f14fXX","derivedDataPath":"/Users/CX02592/PycharmProjects/niji_for_home_qa/resources/webdriver-agent","iPhoneOnly":true,"usePrebuiltWDA":true,"useNewWDA":false,"showXcodeLog":true,"safariGarbageCollect":true,"wdaEventloopIdleDelay":10},null,{"firstMatch":[{"appium:language":"es","appium:locale":"ES","platformName":"iOS","appium:newCommandTimeout":650,"appium:automationName":"XCUITest","appium:platformVersion":"15.4","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:appWaitDuration":40000,"appium:app":"/tmp/iOS-Enterprise-ES_1.ipa","appium:udid":"0680470b5c71bXXX418f761c1b48466b39f14fXX","appium:udids":"0680470b5c71bXXX418f761c1b48466b39f14fXX","appium:derivedDataPath":...
[AppiumDriver@3d61] Plugins which can handle cmd 'createSession': relaxed-caps,device-farm,appium-dashboard
[AppiumDriver@3d61] Plugin appium-dashboard is now handling cmd 'createSession'
[AppiumDriver@3d61] Plugin device-farm is now handling cmd 'createSession'
[debug] [ADB] Getting connected devices
[debug] [ADB] No connected devices have been detected
[device-farm] IOS Device details for 0680470b5c71bXXX418f761c1b48466b39f14fXX already available
[device-farm] {"platform":"ios","name":"iPhone","deviceType":"real","udid":["0680470b5c71bXXX418f761c1b48466b39f14fXX"],"busy":false}
[device-farm] Waiting for free device
[device-farm] 📱 Device found: {"wdaLocalPort":52621,"mjpegServerPort":52622,"udid":"0680470b5c71bXXX418f761c1b48466b39f14fXX","sdk":"15.4","name":"iPhone de Álvaro","busy":false,"realDevice":true,"deviceType":"real","platform":"ios","host":"http://127.0.0.1:4723","totalUtilizationTimeMilliSec":0,"sessionStartTime":0,"derivedDataPath":"/Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX","offline":false,"meta":{"revision":14,"created":1669714688093,"version":0,"updated":1669715762870},"$loki":34,"newCommandTimeout":650}
[device-farm] 📱 Blocking device 0680470b5c71bXXX418f761c1b48466b39f14fXX for new session
[AppiumDriver@3d61] Plugin relaxed-caps is now handling cmd 'createSession'
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/CX02592/.appium/node_modules/appium-xcuitest-driver
[debug] [Appium] Requiring driver at /Users/CX02592/.appium/node_modules/appium-xcuitest-driver
[AppiumDriver@3d61] Appium v2.0.0-beta.46 creating new XCUITestDriver (v4.12.2) session
[AppiumDriver@3d61] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@3d61] Appium's BaseDriver version is 8.7.3
[AppiumDriver@3d61] XCUITestDriver's BaseDriver version is 8.7.3
[debug] [XCUITestDriver@c343] Creating session with W3C capabilities: {
[debug] [XCUITestDriver@c343] "alwaysMatch": {
[debug] [XCUITestDriver@c343] "platformName": "iOS",
[debug] [XCUITestDriver@c343] "appium:language": "es",
[debug] [XCUITestDriver@c343] "appium:locale": "ES",
[debug] [XCUITestDriver@c343] "appium:newCommandTimeout": 650,
[debug] [XCUITestDriver@c343] "appium:automationName": "XCUITest",
[debug] [XCUITestDriver@c343] "appium:platformVersion": "15.4",
[debug] [XCUITestDriver@c343] "appium:unicodeKeyboard": true,
[debug] [XCUITestDriver@c343] "appium:resetKeyboard": true,
[debug] [XCUITestDriver@c343] "appium:appWaitDuration": 40000,
[debug] [XCUITestDriver@c343] "appium:app": "/tmp/iOS-Enterprise-ES_1.ipa",
[debug] [XCUITestDriver@c343] "appium:udid": "0680470b5c71bXXX418f761c1b48466b39f14fXX",
[debug] [XCUITestDriver@c343] "appium:udids": "0680470b5c71bXXX418f761c1b48466b39f14fXX",
[debug] [XCUITestDriver@c343] "appium:derivedDataPath": "/Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX",
[debug] [XCUITestDriver@c343] "appium:iPhoneOnly": true,
[debug] [XCUITestDriver@c343] "appium:usePrebuiltWDA": true,
[debug] [XCUITestDriver@c343] "appium:useNewWDA": false,
[debug] [XCUITestDriver@c343] "appium:showXcodeLog": true,
[debug] [XCUITestDriver@c343] "appium:safariGarbageCollect": true,
[debug] [XCUITestDriver@c343] "appium:wdaEventloopIdleDelay": 10,
[debug] [XCUITestDriver@c343] "appium:deviceName": "iPhone de Álvaro",
[debug] [XCUITestDriver@c343] "appium:wdaLocalPort": 52621,
[debug] [XCUITestDriver@c343] "appium:mjpegServerPort": 52622
[debug] [XCUITestDriver@c343] },
[debug] [XCUITestDriver@c343] "firstMatch": [
[debug] [XCUITestDriver@c343] {}
[debug] [XCUITestDriver@c343] ]
[debug] [XCUITestDriver@c343] }
[XCUITestDriver@c343] The following capabilities were provided, but are not recognized by Appium:
[XCUITestDriver@c343] unicodeKeyboard
[XCUITestDriver@c343] resetKeyboard
[XCUITestDriver@c343] appWaitDuration
[XCUITestDriver@c343] udids
[XCUITestDriver@c343] iPhoneOnly
[XCUITestDriver@c343 (1bb4c3d4)] Session created with session id: 1bb4c3d4-1941-4b41-ac31-a0d92c42706a
[debug] [XCUITest] Current user: 'CX02592'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Available devices: 0680470b5c71bXXX418f761c1b48466b39f14fXX
[debug] [XCUITest] Creating iDevice object with udid '0680470b5c71bXXX418f761c1b48466b39f14fXX'
[XCUITestDriver@c343 (1bb4c3d4)] Determining device to run tests on: udid: '0680470b5c71bXXX418f761c1b48466b39f14fXX', real device: true
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'xcodeDetailsRetrieved' logged at 1669715953550 (10:59:13 GMT+0100 (hora estándar de Europa central))
[BaseDriver] Using local app '/tmp/iOS-Enterprise-ES_1.ipa'
[XCUITestDriver@c343 (1bb4c3d4)] Using '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app' which was cached from '/tmp/iOS-Enterprise-ES_1.ipa'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'appConfigured' logged at 1669715954052 (10:59:14 GMT+0100 (hora estándar de Europa central))
[debug] [XCUITest] Checking whether app '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [XCUITest] Getting bundle ID from app '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app': 'com.XXXXX.XXXXX.enterprise'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'resetStarted' logged at 1669715954057 (10:59:14 GMT+0100 (hora estándar de Europa central))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'resetComplete' logged at 1669715954057 (10:59:14 GMT+0100 (hora estándar de Europa central))
[XCUITestDriver@c343 (1bb4c3d4)] Using WDA path: '/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@c343 (1bb4c3d4)] Using WDA agent: '/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Crash reports root '/Users/CX02592/Library/Logs/CrashReporter/MobileDevice/iPhone de Álvaro' does not exist. Got nothing to gather.
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'logCaptureStarted' logged at 1669715954312 (10:59:14 GMT+0100 (hora estándar de Europa central))
[XCUITestDriver@c343 (1bb4c3d4)] Setting up real device
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[debug] [XCUITest] Reset requested. Removing app with id 'com.XXXXX.XXXXX.enterprise' from the device
[debug] [XCUITest] Installing '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app' on device with UUID '0680470b5c71bXXX418f761c1b48466b39f14fXX'...
[debug] [XCUITest] Using 'serial' app deployment strategy. You could change it by providing another value to the 'appInstallStrategy' capability
[debug] [XCUITest] Getting bundle ID from app '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app': 'com.XXXXX.XXXXX.enterprise'
[debug] [XCUITest] Successfully scanned the tree structure of '/var/folders/s1/9jbbfdms1kl0vcpw9gygxn940000gp/T/20221029-2299-vvb9lz.ris89/BaseXXXXX.app'
[debug] [XCUITest] Got 32 folders and 312 files to push
[debug] [XCUITest] Successfully created the remote folder structure (33 items)
[debug] [XCUITest] Proceeding to serial files push
[debug] [ADB] Getting connected devices
[debug] [ADB] No connected devices have been detected
[device-farm] IOS Device details for 0680470b5c71bXXX418f761c1b48466b39f14fXX already available
[debug] [XCUITest] Successfully pushed 32 folders and 312 files within 9798ms
[debug] [XCUITest] A new application installation is going to be performed
[XCUITest] App installation succeeded after 15854ms
[debug] [XCUITest] The app has been installed successfully.
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'appInstalled' logged at 1669715971122 (10:59:31 GMT+0100 (hora estándar de Europa central))
[debug] [XCUITestDriver@c343 (1bb4c3d4)] No obsolete cached processes from previous WDA sessions listening on port 52621 have been found
[DevCon Factory] Requesting connection for device 0680470b5c71bXXX418f761c1b48466b39f14fXX on local port 52621, device port 52621
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 0680470b5c71bXXX418f761c1b48466b39f14fXX:52621
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[WD Proxy] socket hang up
[debug] [XCUITestDriver@c343 (1bb4c3d4)] WDA is not listening at 'http://127.0.0.1:52621/'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] WDA is currently not running. There is nothing to cache
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITestDriver@c343 (1bb4c3d4)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'wdaStartAttempted' logged at 1669715971248 (10:59:31 GMT+0100 (hora estándar de Europa central))
[XCUITestDriver@c343 (1bb4c3d4)] Launching WebDriverAgent on the device
[XCUITestDriver@c343 (1bb4c3d4)] Skipped WDA project cleanup according to the provided capabilities
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*0680470b5c71bXXX418f761c1b48466b39f14fXX' for the device 0680470b5c71bXXX418f761c1b48466b39f14fXX...
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*0680470b5c71bXXX418f761c1b48466b39f14fXX' didn't detect any matching processes. Return code: 1
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Beginning test with command 'xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[Xcode] Command line invocation:
[Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[Xcode]
[Xcode] User defaults from command line:
[Xcode] IDEDerivedDataPathOverride = /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX
[Xcode] IDEPackageSupportUseBuiltinSCM = YES
[Xcode]
[Xcode] Build settings from command line:
[Xcode] COMPILER_INDEX_STORE_ENABLE = NO
[Xcode] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[Xcode] IPHONEOS_DEPLOYMENT_TARGET = 15.4
[Xcode]
[Xcode]
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[debug] [ADB] Getting connected devices
[debug] [ADB] No connected devices have been detected
[device-farm] IOS Device details for 0680470b5c71bXXX418f761c1b48466b39f14fXX already available
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[Xcode]
[Xcode]
[Xcode] *** If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-33-+0100.xcresult
[Xcode]
[Xcode]
[Xcode] 2022-11-29 10:59:34.096 xcodebuild[3356:95219] [MT] IDETestOperationsObserverDebug: 0.413 elapsed -- Testing started completed.
[Xcode] 2022-11-29 10:59:34.096 xcodebuild[3356:95219] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[Xcode] 2022-11-29 10:59:34.096 xcodebuild[3356:95219] [MT] IDETestOperationsObserverDebug: 0.413 sec, +0.413 sec -- end
[Xcode]
[Xcode]
[Xcode] Test session results, code coverage, and logs:
[Xcode] /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-33-+0100.xcresult
[Xcode]
[Xcode]
[Xcode] Testing failed:
[Xcode] WebDriverAgentRunner:
[Xcode] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-33-+0100.xcresult. (Underlying Error: Executable Not Found. /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.))
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[Xcode] Testing started
[Xcode]
[Xcode] xcodebuild exited with code '65' and signal 'null'
[XCUITestDriver@c343 (1bb4c3d4)] Launching WebDriverAgent on the device
[XCUITestDriver@c343 (1bb4c3d4)] Skipped WDA project cleanup according to the provided capabilities
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*0680470b5c71bXXX418f761c1b48466b39f14fXX' for the device 0680470b5c71bXXX418f761c1b48466b39f14fXX...
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*0680470b5c71bXXX418f761c1b48466b39f14fXX' didn't detect any matching processes. Return code: 1
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Beginning test with command 'xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[Xcode] Command line invocation:
[Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[Xcode]
[Xcode] User defaults from command line:
[Xcode]
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[Xcode] IDEDerivedDataPathOverride = /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX
[Xcode] IDEPackageSupportUseBuiltinSCM = YES
[Xcode]
[Xcode] Build settings from command line:
[Xcode] COMPILER_INDEX_STORE_ENABLE = NO
[Xcode] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[Xcode] IPHONEOS_DEPLOYMENT_TARGET = 15.4
[Xcode]
[Xcode]
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Proxying [GET /status] to [GET http://127.0.0.1:52621/status] with no body
[debug] [iProxy@0680470b:52621] Connection was refused to port 52621
[XCUITestDriver@c343 (1bb4c3d4)] socket hang up
[Xcode]
[Xcode]
[Xcode] *** If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[Xcode]
[Xcode]
[Xcode] 2022-11-29 10:59:36.205 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 elapsed -- Testing started completed.
[Xcode] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[Xcode]
[Xcode] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 sec, +0.298 sec -- end
[Xcode]
[Xcode]
[Xcode] Test session results, code coverage, and logs:
[Xcode] /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[Xcode]
[Xcode]
[Xcode] Testing failed:
[Xcode] WebDriverAgentRunner:
[Xcode] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult. (Underlying Error: Executable Not Found. /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.))
[Xcode]
[Xcode] ** TEST EXECUTE FAILED **
[Xcode]
[Xcode]
[Xcode] Testing started
[Xcode]
[Xcode] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Event 'wdaStartFailed' logged at 1669715976332 (10:59:36 GMT+0100 (hora estándar de Europa central))
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITestDriver@c343 (1bb4c3d4)] xcodebuild error message:
[debug] [XCUITestDriver@c343 (1bb4c3d4)]
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Command line invocation:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[debug] [XCUITestDriver@c343 (1bb4c3d4)] User defaults from command line:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] IDEDerivedDataPathOverride = /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX
[debug] [XCUITestDriver@c343 (1bb4c3d4)] IDEPackageSupportUseBuiltinSCM = YES
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Build settings from command line:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] COMPILER_INDEX_STORE_ENABLE = NO
[debug] [XCUITestDriver@c343 (1bb4c3d4)] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[debug] [XCUITestDriver@c343 (1bb4c3d4)] IPHONEOS_DEPLOYMENT_TARGET = 15.4
[debug] [XCUITestDriver@c343 (1bb4c3d4)] *** If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[debug] [XCUITestDriver@c343 (1bb4c3d4)] 2022-11-29 10:59:36.205 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 elapsed -- Testing started completed.
[debug] [XCUITestDriver@c343 (1bb4c3d4)] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[debug] [XCUITestDriver@c343 (1bb4c3d4)] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 sec, +0.298 sec -- end
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Test session results, code coverage, and logs:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Testing failed:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] WebDriverAgentRunner:
[debug] [XCUITestDriver@c343 (1bb4c3d4)] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult. (Underlying Error: Executable Not Found. /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.))
[debug] [XCUITestDriver@c343 (1bb4c3d4)] ** TEST EXECUTE FAILED **
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Testing started. 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.
[XCUITestDriver@c343 (1bb4c3d4)] Quitting and uninstalling WebDriverAgent
[XCUITestDriver@c343 (1bb4c3d4)] Shutting down sub-processes
[debug] [XCUITestDriver@c343 (1bb4c3d4)] No WDAs on the device.
[XCUITestDriver@c343 (1bb4c3d4)] {}
[DevCon Factory] Releasing connections for 0680470b5c71bXXX418f761c1b48466b39f14fXX device on any port number
[DevCon Factory] Found cached connections to release: ["0680470b5c71bXXX418f761c1b48466b39f14fXX:52621"]
[DevCon Factory] Releasing the listener for '0680470b5c71bXXX418f761c1b48466b39f14fXX:52621'
[debug] [iProxy@0680470b:52621] Closing the connection
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITestDriver@c343 (1bb4c3d4)] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[device-farm] 📱 Device UDID 0680470b5c71bXXX418f761c1b48466b39f14fXX unblocked. Reason: Session failed to create
[AppiumDriver@3d61] Command 'createSession' was *not* handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command *was* handled by these: ["relaxed-caps","device-farm","appium-dashboard"].
[debug] [AppiumDriver@3d61] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [AppiumDriver@3d61] xcodebuild error message:
[debug] [AppiumDriver@3d61]
[debug] [AppiumDriver@3d61] Command line invocation:
[debug] [AppiumDriver@3d61] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX -destination id=0680470b5c71bXXX418f761c1b48466b39f14fXX IPHONEOS_DEPLOYMENT_TARGET=15.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[debug] [AppiumDriver@3d61] User defaults from command line:
[debug] [AppiumDriver@3d61] IDEDerivedDataPathOverride = /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX
[debug] [AppiumDriver@3d61] IDEPackageSupportUseBuiltinSCM = YES
[debug] [AppiumDriver@3d61] Build settings from command line:
[debug] [AppiumDriver@3d61] COMPILER_INDEX_STORE_ENABLE = NO
[debug] [AppiumDriver@3d61] GCC_TREAT_WARNINGS_AS_ERRORS = 0
[debug] [AppiumDriver@3d61] IPHONEOS_DEPLOYMENT_TARGET = 15.4
[debug] [AppiumDriver@3d61] *** If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[debug] [AppiumDriver@3d61] 2022-11-29 10:59:36.205 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 elapsed -- Testing started completed.
[debug] [AppiumDriver@3d61] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[debug] [AppiumDriver@3d61] 2022-11-29 10:59:36.206 xcodebuild[3363:95338] [MT] IDETestOperationsObserverDebug: 0.298 sec, +0.298 sec -- end
[debug] [AppiumDriver@3d61] Test session results, code coverage, and logs:
[debug] [AppiumDriver@3d61] /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult
[debug] [AppiumDriver@3d61] Testing failed:
[debug] [AppiumDriver@3d61] WebDriverAgentRunner:
[debug] [AppiumDriver@3d61] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Logs/Test/Test-WebDriverAgentRunner-2022.11.29_10-59-35-+0100.xcresult. (Underlying Error: Executable Not Found. /Users/CX02592/Library/Developer/Xcode/DerivedData/WebDriverAgent-0680470b5c71bXXX418f761c1b48466b39f14fXX/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.))
[debug] [AppiumDriver@3d61] ** TEST EXECUTE FAILED **
[debug] [AppiumDriver@3d61] Testing started. 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.
[debug] [AppiumDriver@3d61] at quitAndUninstall (/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:598:15)
[debug] [AppiumDriver@3d61] at /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:633:11
[debug] [AppiumDriver@3d61] at wrapped (/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [AppiumDriver@3d61] at retry (/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [AppiumDriver@3d61] at retryInterval (/Users/CX02592/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [AppiumDriver@3d61] at /Users/CX02592/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:613:7
[iProxy@0680470b:52621] The connection has been closed
[HTTP] <-- POST /wd/hub/session 500 23561 ms - 6455
[HTTP]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment