appium: Unable to launch WebDriverAgent because of xcodebuild failure
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Mac OS: Sonoma 14.1.1 Appium Version: 2.2.2 XCode: 15.0.1
Build gets installed but then error occurring. Error while running the tests:
xcodebuild exited with code ‘70’ and signal ‘null’. WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
ERROR webdriver: Request failed with status 500 due to unknown error: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70 [0-0] xcodebuild error message:
Expected Behavior
There should not be any error and it was working fine but after upgrading to Xcode we started seeing this webdriver error.
Minimal Reproducible Example
Error occurs outside of the test code
Environment
- Operating system:
- Appium server version (output of
appium --version
): - Appium driver(s) and their version(s):
- Appium plugin(s) and their version(s):
- Node.js version (output of
node --version
): npm
version (output ofnpm --version
):- Last component(s) version which did not exhibit the problem:
- Platform and version under test:
- Real device or emulator/simulator:
Link to Appium Logs
No response
Further Information
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 17 (1 by maintainers)
it looks like
xcodebuild
command by Apple found two simulator devices, that had iOS 16.2 while your capabilities specified iOS 17, thus thexcodebuild
probably confused. You should specify the udid properly, or you may also drop specifying the udid so that Appium can create a new simulator instance with the iOS versionPlease provide server log with xcodebuild logging enabled