AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
311 stars 97 forks source link

Failed to launch WDA driver in iOS 17.3 real device #1006

Open semutmerah opened 6 months ago

semutmerah commented 6 months ago

Describe the bug

Failed to launch WDA driver in iOS 17.3 real device when using device-farm plugin. I already used Enterprise Devs Account to properly signed the WDA based on this docs

Appium log throws this error:

Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider checking the WebDriverAgent configuration guide for real iOS devices at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

But I am really confused since this issue did not happen previously without device-farm plugin. So I think this might be issue from device-farm plugin

Command that I used to run the server: appium server -ka 800 --use-plugins=device-farm,appium-dashboard -pa /wd/hub --plugin-device-farm-platform=ios --plugin-device-farm-ios-device-type=real

Link to Appium logs

GIST

Environment

  1. Appium version (or git revision) that exhibits the issue: v2.5.1, with xcuitest@7.0.1
  2. Last Appium version that did not exhibit the issue (if applicable): Without appium-device-farm will work correctly, using the same appium + xcuitest version
  3. Node.js version (unless using Appium.app|exe): v20.11.0
  4. Npm or Yarn package manager: npm@10.2.4
  5. Mobile platform/version under test: iOS 17.3
  6. Real device or emulator/simulator: real device iPhone SE 3rd generation with iOS 17.3
  7. Appium CLI or Appium.app|exe: Appium CLI, with Appium Inspector to test the call to device farm
  8. Xcode Version: 15.1
  9. MacOS : Sonoma

Capabilities that I used:

{
  "platformName": "ios",
  "appium:automationName": "xcuitest",
  "appium:bundleId": "com.myapp.fl.dev",
  "appium:showXcodeLog": true,
  "appium:xcodeOrgId": "8GT4DGXXXX",     # Enterprise Devs Account
  "appium:xcodeSigningId": "Appium Developer",
  "appium:autoAcceptAlerts": true
}
sdelacruz-c24 commented 6 months ago

I am also facing the same issue

saikrishna321 commented 6 months ago

@semutmerah Can you share logs without the plugin activate. Device farm does not do anything with XCode signing.

sdelacruz-c24 commented 6 months ago

@saikrishna321 I am also having the same issue since I install the device-farm. if I run the appium server normally without device-farm plugin, I do not have this issue. Could help please. Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider checking the WebDriverAgent configuration guide for real iOS devices at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.