appium: Appium 2 - XcuiTest driver args unrecognized wdaLocalPort

The problem

When trying to use appium server --driver-args='{"xcuitest":{"wdaLocalPort": 8104}}' with Appium 2.0.0-beta.23 it throws the following error

appium: error: unrecognized arguments: --driver-args

Environment

  • Appium version (or git revision) that exhibits the issue: Appium 2.0.0-beta.23
  • Last Appium version that did not exhibit the issue (if applicable):Appium 2.0.0-beta.19 (works when i roll back to this version)
  • Desktop OS/version used to run Appium: Appium 2 CLI
  • Node.js version (unless using Appium.app|exe): 14.15.4
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: ios using xcuitest@3.59.1
  • Real device or emulator/simulator: Sim

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

--driver-args was abandoned in favour of config schemas. These are provided by driver devs. If you have appium 2 beta and a recent version of the xcuitest driver, you can find the appropriate driver-specific flags in the help:

appium server --help

will produce this as part of the output:

  --driver-xcuitest-webdriveragent-port WEBDRIVERAGENT_PORT
                        Local port used for communication with WebDriverAgent
  --driver-xcuitest-webkit-debug-proxy-port WEBKIT_DEBUG_PROXY_PORT
                        (Real device only) Port to which `ios-webkit-debug-proxy` is connected

So you can simply run:

appium server --driver-xcuitest-webdriveragent-port 8104

thanks to @boneskull for the fix!

Since https://github.com/appium/appium-xcuitest-driver/pull/1372 has been merged, within the next day or two a new xcuitest driver should be auto-published, which you can then upgrade to via the CLI to get the fix.

See appium/appium-xcuitest-driver#1372