question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium 2 - XcuiTest driver args unrecognized wdaLocalPort

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
jlippscommented, Jan 17, 2022

--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
1reaction
jlippscommented, Jan 19, 2022

thanks to @boneskull for the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

appium-xcuitest-driver - npm
Continuous Integration Setup document covers steps to take in order to use the XCUItest driver in a CI environment. Appium 2.x Server Arguments....
Read more >
Unable to install Mac2 Driver - Support - Appium Discuss
When I try to run the “appium driver install mac2” command I see “error: unrecognized arguments: driver install mac2”.
Read more >
Appium Is not working after xcode11 update - Issues/Bugs
An unknown server-side error occurred while processing the command. ... /appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
Read more >
CLI Arguments - Appium
Flag Default Description ‑‑shell null Enter REPL mode ‑‑ipa null (IOS‑only) abs path to compiled .ipa file ‑a , ‑‑address 0.0.0.0 IP Address to listen on...
Read more >
Got 500 errors when use real iphone - Support - Appium Discuss
createSession() with args: [{“appium:platformName”:“iOS” ... [Appium] The 'xcuitest' driver was installed and matched caps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found