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.

Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1

See original GitHub issue

The problem

Could not install WDA on simulator/real device, because carthage bootstrap command throw error

Environment

  • Appium version (or git revision) that exhibits the issue: 1.14.0-beta.2
  • Last Appium version that did not exhibit the issue (if applicable): 1.14.0-rc.1
  • Desktop OS/version used to run Appium: macOS
  • Node.js version (unless using Appium.app|exe): v11.9.0
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: iPhone X iOS 12.2 (Sim) and iPhone 6 iOS 11.0.1 (device)
  • Real device or emulator/simulator: both
  • Appium CLI or Appium.app|exe: CLI

Details

I haven’t dive in source code but I think that error maybe come from new appium-webdriveragent repo

Link to Appium logs

https://gist.github.com/zcmgyu/51ad5cb03daa30f34b45ea8aebab82b6

Code To Reprodsuce Issue [ Good To Have ]

POST {{host}}/session

{
    "desiredCapabilities": {
        "platformName": "iOS",
        "platformVersion": "12.2",
        "deviceName": "iPhone X",
        "app": "/Users/zcmgyu/Downloads/BaseReactNative_v3.2.app"
    }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
zcmgyucommented, Oct 10, 2019

Thank you guys.

I gotta reclaim write permission in node_modules directory again. Everything works as expected.

sudo chown -R $(whoami) /usr/local/lib

Allow root argument when install appium seems like not work at all.

npm install -g appium --unsafe-perm=true --allow-root


Updated: (Oct 10 2019) Remove Appium from your computer and re-install to solve problem.

npm uninstall -g appium

2reactions
mattslavincommented, Aug 18, 2020

I had two versions of carthage installed that was causing this issue. One was with homebrew the other with npm. There was a global node_modules version and then also the one in the carthage app folder.

npm uninstall carthage
brew uninstall carthage
brew install carthage

brew link --overwrite carthage

Hopefully that will help!

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: Unable to launch ...
... 报错信息:Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1.
Read more >
appium/appium - Gitter
I am able to launch the mobile application in iOS 13 using "Appium 1.15.0-rc" and "Xcode 11.1" but I am unable to swipe-up...
Read more >
install carthage, check carthage version terminal, carthage bootstrap ...
Just as Carthage helps install packages for Cocoa development, ... xcodebuild failure: Command 'carthage bootstrap --platform iOS,tvOS' exited with code 1.
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