Skip to content

AWS Devicefarm Error: xcodebuild failed with code 65

0

We have a devicefarm configured IOS test suite. It has multiple devices attached to its pool which includes devices on different versions of IOS. The device with iOS 17 was able to run the test with configurations but all the other iOS versions tests fails with below error

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
E       xcodebuild error message:
E       . 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.
E       Stacktrace:
E       UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
E       
asked a year ago175 views
1 Answer
0

The error you're encountering with AWS Device Farm for iOS devices running versions other than iOS 17 is related to the WebDriverAgent, which is a critical component for running Appium tests on iOS devices.

This error typically occurs when there's a mismatch between the Xcode version, iOS SDK, and the iOS version on the test devices. It's possible that the WebDriverAgent is not compatible with the older iOS versions in your device pool.

To resolve this issue, you can try the following steps:

  1. Ensure that you're using the latest version of Appium and the iOS driver in your test environment. AWS Device Farm regularly updates its test environments, so make sure you're using a compatible version.

  2. Check if your test package includes the correct dependencies and configurations for the iOS versions you're targeting. You may need to update your project's dependencies or build settings.

  3. Consider using a custom test environment in AWS Device Farm. This allows you to specify the exact versions of Xcode, iOS SDK, and other dependencies that are compatible with your target iOS versions.

  4. If you're using a custom test spec, make sure it's properly configured for all iOS versions in your device pool. You might need to adjust the test spec to accommodate different iOS versions.

  5. Review your test scripts to ensure they're compatible with all iOS versions you're testing against. Some UI elements or interactions might differ between iOS versions, causing failures on older devices.

  6. If the issue persists, you may need to create separate device pools or test runs for different iOS versions, using configurations that are specifically tailored for each version range.

Remember that AWS Device Farm supports various test frameworks and environments for iOS testing. If you continue to face issues, you might want to explore alternative test frameworks or consider using built-in tests provided by AWS Device Farm for broader device compatibility.
Sources
Welcome - AWS Device Farm Documentation
AWS Device Farm document history - AWS Device Farm
Built-in tests in AWS Device Farm - AWS Device Farm

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.