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 1.7.1, WDA ServerURLHere->http://[...]:0<-ServerURLHere

See original GitHub issue

The problem

WDA can generally be started via xcodebuild.

This works with the WDA:

From Log: ServerURLHere->http://[…]:8100<-ServerURLHere

It does not work with the WDA:

  • coming with Appium 1.7.1

From Log: ServerURLHere->http://[…]:0<-ServerURLHere

With Appium 1.7.1, the WDA does when being started by Appium when instantiating the Remote Webdriver in code without the desired_capabilities[“webDriverAgentUrl”] being set. However, going into the Appium log, copying the exact command line which is written there (used here in the “Details” section), and executing that command leads to the issue named above.

So, apparently, the call of the xcodebuild is not executed in exactly the same way for both:

  • by Appium during instantiation of Remote Webdriver
  • manually in shell

Environment

  • Appium version (or git revision) that exhibits the issue: 1.7.1 (also 1.6.6-beta)
  • Last Appium version that did not exhibit the issue (if applicable): 1.6.5
  • Desktop OS/version used to run Appium: macOS Sierra version 10.12.6
  • Node.js version (unless using Appium.app|exe): v8.3.0
  • Mobile platform/version under test: iOS 10.3
  • Real device or emulator/simulator: simulator
  • Appium CLI or Appium.app|exe: Appium CLI

Details

Command line, copied from Appium log and executed separately in shell:

xcodebuild build-for-testing test-without-building -project [...]/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=[...] IPHONEOS_DEPLOYMENT_TARGET=10.3 > "[...]/stdout.txt" 2> "[...]/stderr.txt"

Same issue occurrs when calling the build/test from Xcode GUI.

Link to Appium logs

Listing also WDA logs, because the issue is related to the specific WDA coming with Appium.

With issue for WDA in Appium 1.7.1, when using xcodebuild:

stdout_1_7_1.txt: https://gist.github.com/FrankThonig/141b7ba87b9b85e67974172129706779 stderr_1_7_1.txt: https://gist.github.com/FrankThonig/113b45c17858ee431d9cc527ad7d8acf xcode_1_7_1.txt: https://gist.github.com/FrankThonig/6e2dfbd3efdb59710340d27ba38c8e0f

Without issue for WDA in Appium 1.7.1, when being started by Appium without desired_capabilities[“webDriverAgentUrl”] being set:

appium_1_7_1.txt: https://gist.github.com/FrankThonig/0d90f9ab993084a51de3e4d8ccb8c65b

Without issue for WDA in Appium 1.6.5, when using xcodebuild:

stdout_1_6_5.txt: https://gist.github.com/FrankThonig/65901607854f709ed3c35fab1906857c stderr_1_6_5.txt: https://gist.github.com/FrankThonig/ea7913aa5c3ec3bebe1173f2cdf1cfd0 xcode_1_6_5.txt: https://gist.github.com/FrankThonig/62c622841f7f189254bc928f64c71628

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
mykola-mokhnachcommented, Oct 27, 2017

add USE_PORT=8100 at the beginning of xcodebuild execution command

0reactions
lock[bot]commented, Apr 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium 1.7.0 Released - News
Note: This is a feature release, marking two major changes: Support iOS 11 through Xcode 9 beta 6; Support multiple simultaneous sessions in...
Read more >
Using a custom WDA server - Appium
Please refer to https://github.com/appium/appium-xcuitest-driver/blob/master/docs/wda-custom-server.md. Documentation built with MkDocs. × Close. Search.
Read more >
Downloads - Appium
Appium Desktop Apps. Appium's desktop app supports OS X, Windows and Linux. Appium-Desktop for OSX, Windows and Linux. We're open for discussion and...
Read more >
Appium 1.7.1 Released - News
Hi everyone, Appium 1.7.1 is out with a few bugfixes based on initial feedback from 1.7.0 ... Can use xctestrun file to launch...
Read more >
Desired Capabilities - Appium
Appium will attempt to install this app binary on the appropriate device first. Note that this capability is not required for Android if...
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