Unable to launch WebDriverAgent because of xcodebuild failure: "Carthage binary is not found."

timetraveler90 picture timetraveler90 · Mar 13, 2018 · Viewed 7.7k times · Source

Every time i try to start appium desktop with the iOS capabilities i am getting the following error:

Unable to launch WebDriverAgent because of xcodebuild failure: "Carthage binary is not found. Install using brew install carthage if it is not installed and make sure the root folder, where carthage binary is installed, is present in PATH environment variable.

Complete appium log can be found on the following link

Capabilities used for this are:

{
"platformName": "iOS",
"deviceName": "iPhone X",
"app": "path/to/my/App.app",
"platformVersion": "11.2",
"automationName": "XCUITest",
"xcodeOrgId": "myXcodeOrgId",
"bundleId": "bundleIdOfMyApp"
}

which carthage output is /usr/local/bin/carthage and the version of carthage is 0.28.0

XCode version is Version 9.2 (9C40b)

Answer

Wasiq Bhamla picture Wasiq Bhamla · Mar 13, 2018

You need to first install Carthage on your machine by executing below command on your terminal

$ brew install carthage

For more details refer here.