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 issueThe 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:20 (3 by maintainers)
Top GitHub Comments
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 !
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.