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
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
- fix(appium): make show-config more right `--show-config` was not able to distinguish between defaults and values provided on the CLI. now it does. `--show-config` now displays (in this order): 1. ... — committed to appium/appium by boneskull 2 years ago
--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:will produce this as part of the output:
So you can simply run:
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