When running Test Jobs on iOS simulators, encountering an xcodebuild error may indicate that Appium failed to start or abruptly stopped your web driver agent server on your iOS device. In such cases, you may need to start the web driver agent manually. Follow these steps:
- Download the Web driver agent from here.
- Uncompress the contents of the zip file.
- Open a terminal in that folder.
- Run the following command:
xcrun xctrace list devices
- This command will print the output in the following format:
iPhone 14 Pro Max Simulator (16.2) (ABCD-EFGHIJIK-12345)
- The last string within the parentheses is your Simulator's UDID.
- This command will print the output in the following format:
- Copy the UDID of the target simulator and modify the command below in the terminal:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=UDID' test -allowProvisioningUpdates
- For example:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=ABCD-EFGHIJIK-12345' test -allowProvisioningUpdates
- For example:
- Execute the above command in the terminal.
- Wait for the message shown below to appear:
- Once the message shows up, you can start your job.
- Keep the above command handy.
Note: Remember to start the web driver agent server every time before starting the job.
Comments
0 comments
Please sign in to leave a comment.