Error Installing WebDriverAgent from bitrise Virtual Machine

—HELPPP :sob:
Hiiii, I am trying to execute my appium tests from bitrise in ios but I get the next error with WebdriverAgent:

Command line invocation:

/Applications/Xcode-14.0.1.app/Contents/Developer/usr/bin/xcodebuild test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=040A0FF1-25E7-4803-B8BE-431F38B97EC7 IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
User defaults from command line:
IDEDerivedDataPathOverride = /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
COMPILER_INDEX_STORE_ENABLE = NO
GCC_TREAT_WARNINGS_AS_ERRORS = 0
IPHONEOS_DEPLOYMENT_TARGET = 16.0
2022-10-07 09:00:52.946 xcodebuild[9613:44400] [MT] IDETestOperationsObserverDebug: 0.015 elapsed – Testing started completed.
2022-10-07 09:00:52.946 xcodebuild[9613:44400] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
2022-10-07 09:00:52.946 xcodebuild[9613:44400] [MT] IDETestOperationsObserverDebug: 0.015 sec, +0.015 sec – end
Test session results, code coverage, and logs:
/Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2022.10.07_09-00-52-+0000.xcresult
Testing failed:
Test target WebDriverAgentRunner encountered an error (The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read. No such file or directory: “/Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app”.)
** TEST EXECUTE FAILED **

my capabilities:

I was seeing the virtual machine and the app is installed but not the WebDriverManager

This is probably the issue. The command line only includes test-without-building, which forces xcode to skip WDA build and start with tests immediately. But it looks like WDA has never been built before, so the whole flow fails.

Thank you very much for the quick answer :grinning:! Do you know how I could build the WDA from the virtual machine?

I don’t know, never tried that

to allow WDA build on your machine you need install someone (maybe yours :slight_smile: ) iOS developer certificate first.
then you need add some capabilities to make Appium build it. see -> https://appium.io/docs/en/drivers/ios-xcuitest-real-devices/ -> Basic (automatic) configuration

Aleksei, Thanks for the quick answer :grinning:!
I am execute my tests in a simulator on my virtual machine, not a real device.
I should also install iOS Developer certificate?

eeeeeee with Simulator you should not need anything.
try play with usePrebuiltWDA false

I have a problem with WebDriverAgent in bitrise too. I am getting an exception when I am trying to create object of IOSDriver class

URL url = new URL(String.format("http://%s:%s/wd/hub", config().appiumHost(), AppiumSession.getAppiumPort()));
IOSDriver driver = new IOSDriver(url, options);

Looks like I should increase timeout as I don’t have enough time to build WebDRiverAgent app and get exception after 60-65 seconds. And I don’t know which timeout should be updated

 Caused by:
2022-04-18T15:44:02.394+0000 [DEBUG] [TestEventLogger]                 org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException
2022-04-18T15:44:02.394+0000 [DEBUG] [TestEventLogger]                 Build info: version: '4.1.3', revision: '7b1ebf28ef'
2022-04-18T15:44:02.394+0000 [DEBUG] [TestEventLogger]                 System info: host: 'vm-osx-xcode-13.3.x-g2.4core-2c292c9b-168e-4744-b89f-3e7756272483.local', ip: 'fe80:0:0:0:1807:af7c:e23f:7704%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.2.1', java.version: '17.0.2'
2022-04-18T15:44:02.394+0000 [DEBUG] [TestEventLogger]               

These don’t work for me:

setWdaLaunchTimeout
setSimulatorStartupTimeout
setWdaLaunchTimeout
setNewCommandTimeout
setWdaConnectionTimeout

1 Like

the problem is that when installing appium it does not leave the app WebDriverAgentRunner-Runner in /Users/vagrant/library/developer/xcode/deriveddata/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/build/products so when you have to install the webdriverManager you can’t because it doesn’t exist

Ícono de validado por la comunidad

I don’t know how to solve it :frowning:
but this problem is recent because it used to run fine 1 month ago

Ícono de validado por la comunidad

this folder created after building WDA app. While it building for real device you need to add your OWN developer certificate.

That error is with simulator

Testing failed:
Test target WebDriverAgentRunner encountered an error (The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read. No such file or directory: “/Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app”.)
**** TEST EXECUTE FAILED ****

uuups. read before more logs in debug level to understand wht happens. Appium should build WDA for simulator before.

Hi aleksei, I send you the log of appium server :smiley:

[debug] [WebDriverAgent] WDA is not listening at ‘http://127.0.0.1:8100/
[debug] [WebDriverAgent] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1666007868044 (11:57:48 GMT+0000 (Greenwich Mean Time))
[WebDriverAgent] Launching WebDriverAgent on the device
[debug] [WebDriverAgent] Stored the recent WebDriverAgent upgrade timestamp 1666007234886 at ‘/Users/vagrant/.appium/webdriveragent/upgrade.time’
[debug] [WebDriverAgent] Cleaning the project scheme ‘WebDriverAgentLib’ to make sure there are no leftovers from previous installs
[debug] [WebDriverAgent] Cleaning the project scheme ‘WebDriverAgentRunner’ to make sure there are no leftovers from previous installs
[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE, 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner, xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ for the device 40F51BB6-F6ED-45AE-8A33-15E6836705EE…
[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use ‘showXcodeLog’ desired capability
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666007234886 >= 1666007234886)

[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE, 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner, xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ for the device 40F51BB6-F6ED-45AE-8A33-15E6836705EE…

[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’

[debug] [WebDriverAgent] No WDAs on the device.
[XCUITest] {}
[DevCon Factory] Releasing connections for 40F51BB6-F6ED-45AE-8A33-15E6836705EE device on any port number
[DevCon Factory] Found cached connections to release: [“40F51BB6-F6ED-45AE-8A33-15E6836705EE:8100”]
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
[debug] [IOSSimulatorLog] Stopping iOS log capture
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1666007991044 (11:59:51 GMT+0000 (Greenwich Mean Time))
[debug] [W3C] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [W3C] xcodebuild error message:
[debug] [W3C]
[debug] [W3C] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11
[debug] [W3C] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:600:7
[HTTP] <-- POST /wd/hub/session 500 23803 ms - 741
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“platformVersion”:“16.0”,“automationName”:“XCuiTest”,“platformName”:“iOS”,“deviceName”:“iPhone 8 Plus”,“usePrebuiltWDA”:true},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“appium:automationName”:“XCuiTest”,“appium:deviceName”:“iPhone 8 Plus”,“platformName”:“ios”,“appium:platformVersion”:“16.0”,“appium:usePrebuiltWDA”:true}]}}

appium version 1.22.3

what is it? it means you responsible to build WDA.

sorry I changed for false but i get the same error

WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666008759675 >= 1666008759675)
[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE, 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner, xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ for the device 40F51BB6-F6ED-45AE-8A33-15E6836705EE…
[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’

[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use ‘showXcodeLog’ desired capability
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[debug] [W3C] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [W3C] xcodebuild error message:
[debug] [W3C]
[debug] [W3C] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11
[debug] [W3C] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:600:7
[HTTP] <-- POST /wd/hub/session 500 105985 ms - 741
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“platformVersion”:“16.0”,“automationName”:“XCuiTest”,“platformName”:“iOS”,“deviceName”:“iPhone 8 Plus”,“usePrebuiltWDA”:false},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“appium:automationName”:“XCuiTest”,“appium:deviceName”:“iPhone 8 Plus”,“platformName”:“ios”,“appium:platformVersion”:“16.0”,“appium:usePrebuiltWDA”:false}]}}

add appium:useNewWDA = true. default false and expecting to have WAD app on phone.

Aleksei I added this capability but I get this

[debug] [XCUITest] Installing ‘/Users/vagrant/deploy/elcorteinglesPRO.app’ on Simulator with UUID ‘40F51BB6-F6ED-45AE-8A33-15E6836705EE’…

[debug] [WebDriverAgent] Parsed BUILD_DIR configuration value: ‘/Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products’

[debug] [WebDriverAgent] Got derived data root: ‘/Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu’

[debug] [XCUITest] The app has been installed successfully.

[debug] [BaseDriver] Event ‘appInstalled’ logged at 1666019750389 (15:15:50 GMT+0000 (Greenwich Mean Time))

[debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found

[DevCon Factory] Requesting connection for device 40F51BB6-F6ED-45AE-8A33-15E6836705EE on local port 8100

[debug] [DevCon Factory] Cached connections count: 0

[DevCon Factory] Successfully requested the connection for 40F51BB6-F6ED-45AE-8A33-15E6836705EE:8100

[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key ‘XCUITestDriver’

[debug] [XCUITest] Capability ‘useNewWDA’ set to true, so uninstalling WDA before proceeding

[WebDriverAgent] Shutting down sub-processes

[debug] [iOSSim] Building bundle path map

[debug] [iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:

[debug] [WebDriverAgent] No WDAs on the device.

[debug] [BaseDriver] Event ‘wdaUninstalled’ logged at 1666019750849 (15:15:50 GMT+0000 (Greenwich Mean Time))

[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval

[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1666019750850 (15:15:50 GMT+0000 (Greenwich Mean Time))

[WebDriverAgent] Launching WebDriverAgent on the device

[debug] [WebDriverAgent] Stored the recent WebDriverAgent upgrade timestamp 1666019016621 at ‘/Users/vagrant/.appium/webdriveragent/upgrade.time’

[debug] [WebDriverAgent] Cleaning the project scheme ‘WebDriverAgentLib’ to make sure there are no leftovers from previous installs

[debug] [WebDriverAgent] Cleaning the project scheme ‘WebDriverAgentRunner’ to make sure there are no leftovers from previous installs

[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE, 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner, xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ for the device 40F51BB6-F6ED-45AE-8A33-15E6836705EE…

[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’

[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use ‘showXcodeLog’ desired capability

[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WD Proxy] connect ECONNREFUSED 127.0.0.1:8100

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body

[WebDriverAgent] xcodebuild exited with code ‘65’ and signal ‘null’

[WebDriverAgent] Launching WebDriverAgent on the device

[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666019016621 >= 1666019016621)

[debug] [WebDriverAgent] Killing running processes ‘xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE, 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner, xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ for the device 40F51BB6-F6ED-45AE-8A33-15E6836705EE…

[debug] [WebDriverAgent] ‘pgrep -if xcodebuild.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if xctest.*40F51BB6-F6ED-45AE-8A33-15E6836705EE’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] ‘pgrep -if 40F51BB6-F6ED-45AE-8A33-15E6836705EE.*XCTRunner’ didn’t detect any matching processes. Return code: 1

[debug] [WebDriverAgent] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/vagrant/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=40F51BB6-F6ED-45AE-8A33-15E6836705EE IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’

[debug] [IOSSimulatorLog] Stopping iOS log capture

[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1666019787240 (15:16:27 GMT+0000 (Greenwich Mean Time))

[debug] [W3C] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

[debug] [W3C] xcodebuild error message:

[debug] [W3C]

[debug] [W3C] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)

[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11

[debug] [W3C] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)

[debug] [W3C] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)

[debug] [W3C] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)

[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:600:7

[HTTP] <-- POST /wd/hub/session 500 43194 ms - 741

[HTTP]

[HTTP] --> POST /wd/hub/session

[HTTP] {“desiredCapabilities”:{“app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“platformVersion”:“16.0”,“automationName”:“XCuiTest”,“useNewWDA”:true,“platformName”:“iOS”,“deviceName”:“iPhone 8 Plus”,“usePrebuiltWDA”:false},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/vagrant/deploy/elcorteinglesPRO.app",“appium:automationName”:“XCuiTest”,“appium:deviceName”:“iPhone 8 Plus”,“platformName”:“ios”,“appium:platformVersion”:“16.0”,“appium:useNewWDA”:true,“appium:usePrebuiltWDA”:false}]}}

Try this command manually on remote machine and check output.

Command to build wda fails.

Good morning Aleksei, I Tried and get this error. Xcode 14.0.x, on macOS 12.5 (Monterey)

31%20AM

eeee your Appium server version is? switch to 2.0.0-beta.XX
PS I suspect older versions just not ready for latest iOS16