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.15.1 - Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1

See original GitHub issue

The problem

I try to run a session with basic capabilities

{ "platformName": "iOS", "platformVersion": "13.4", "deviceName": "iPhone 8 Plus", "automationName": "XCUITest", "udid": "613549A3-01E5-402F-8F71-F2FF5692DB80", "browserName": "Safari", "noReset": true }

And the application desktop stuck in this

[info] [WebDriverAgent] Fetching dependencies [info] [WebDriverAgent] Installing/updating dependencies for platforms 'iOS', 'tvOS' [info] [XCUITest] Launching WebDriverAgent on the device [info] [WebDriverAgent] Fetching dependencies [info] [WebDriverAgent] Installing/updating dependencies for platforms 'iOS', 'tvOS' [debug] [BaseDriver] Event 'wdaStartFailed' logged at 1587500134169 (15:15:34 GMT-0500 (CDT)) [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1

I have tried several things

1 - brew uninstall -g carthage; brew install carthage Then force the sym links to overwrite the bad link – brew link --overwrite carthage

2 - cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent rm -rf Carthage ./Scripts/bootstrap.sh -d

Any help would be appreciated

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Desktop OS/version used to run Appium: Mac 10.15.4 Catalina
  • Node.js version (unless using Appium.app|exe): 13.12.0
  • Npm or Yarn package manager: npm 6.14.4
  • Mobile platform/version under test: ios
  • Real device or emulator/simulator: simulator
  • Appium CLI or Appium.app|exe: Appium.app

Link to Appium logs

appium log carthage-xcodebuild

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
peacebytescommented, Dec 19, 2020

Hi Guys, I’ve got a solution.

I have been seeing the same issue in my team but I don’t have it on my laptop. I couldn’t figure out until I got a new laptop and ran into the same situation. I ended up here and saw you guys had the same issue.

Not sure if this could help (if you already have found your way out of it).

Here is my solution.

Installation set:

Important: Open Xcode > Preference > Locations Command Line Tools: Xcode 11.3.1

Enjoy your tests !

0reactions
Sibele-Tolentinocommented, Jun 11, 2021

Um colega meu teve o mesmo erro:

Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘carthage bootstrap --platform iOS,tvOS’ exited with code 1 (Selenium::WebDriver::Error::UnknownError)

E resolveu desinstalando o Appium e instalando de novo.


A friend had the same error:

Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘carthage bootstrap --platform iOS,tvOS’ exited with code 1 (Selenium::WebDriver::Error::UnknownError)

And fixed it by uninstalling e installing Appium.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to launch WebDriverAgent because of xcodebuild ...
Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1 · Install ...
Read more >
Unable to launch WebDriverAgent because of xcodebuild ...
Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1.
Read more >
Appium error [resolved] - Unable to launch WebDriverAgent ...
Appium error [resolved] – Unable to launch WebDriverAgent because of xcodebuild failure: not found: carthage. You are here:.
Read more >
appium/appium - Gitter
An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: ...
Read more >
appium-xcuitest-driver - npm
e.g. If you build WDA for 12.2, the module cannot run on iOS 11.4 because of loading some module error on simulator. A...
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