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.

Could not reuse existing WDA on real iPhone device.

See original GitHub issue

The problem

Problem is that Appium could not reuse existing WDA on real iPhone device - every next test script run there would be unsuccessful try to get response, deleting existing WDA and installing new WDA.

There are some interesting things:

  1. For http://localhost:8100/status request THERE IS response 200! But later “Failed to create WDA session”

  2. Strange line [XCUITest] at quitAndUninstall (/Users/admin/appium/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:476:13) Seems like buggy log output.

Environment

  • Appium server v1.11.1
  • Node.js v10.15.1
  • Npm 6.8.0
  • Mobile platform/version under test: iOS 12.1
  • Real device: iPhone X

Link to Appium logs

GIST appuim_log_XCUITest_real_device_could_not_reuse_WDA.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amokmencommented, Mar 13, 2019

It seems I got it.

If you sign app with iOS Developer certificate and trying to run it on device manually without connection to Xcode or command line xcodebuild - app simple would not run! Apple security reasons…

To be able run app on real device without Xcode/xcodebuild session, you should sign it with iOS Distribution certificate. And create Ad Hoc provisioning profile with that certificate. And before it you should link device to your Apple account and include this device to provisioning profile.

Or you just could use your Apple iOS Developer certificate but Appium would EVERY TIME for every new session run rebuild WDA.

0reactions
lock[bot]commented, Mar 22, 2020

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

How to reuse the existing wda agent - Support - Appium Discuss
Hi, I run many test cases with appium on real iphone devices, every time i start a new test case, the appium will...
Read more >
How to fix WebDriverAgent(WDA) run failure on Hybrid ...
Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Solution Manually check whether the ...
Read more >
[Appium]Re-use existing WDA in create session command
I would like to show a “cache” feature for WDA in Appium. After this PR , the function will work correctly. The PR...
Read more >
Xcode testing process is getting f… | Apple Developer Forums
We have an automation suite which needs should be triggered in IOS and while in execution, the xcode testing is getting failed abruptly...
Read more >
atom-appium-xcuitest-driver - npm package - Snyk
Defaults to 10000ms. e.g., 20000. wdaLocalPort, This value if specified, will be used to forward traffic from Mac host to real ios devices...
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