timetraveler90
timetraveler90

Reputation: 346

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

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)

Upvotes: 4

Views: 8805

Answers (3)

MDK
MDK

Reputation: 3

Problem with Carthage Folder, Check in below path /Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent

Carthage Folder If it is not there, Follow Below steps

Step-1: For Appium 1.15.1 and above

Open below path in Terminal $ cd /Applications/Appium.app/Contents/Resources/app/node_modules

$ sudo chmod -R 777 . appium-webdriveragent/*

Step-2: goto 1) $ cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent

2) sudo mkdir -p Resources/WebDriverAgent.bundle

3) sudo sh ./Scripts/bootstrap.sh -d

Step-3: Build WebDriverAgent Project with sign

Open below project in XCode /Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj

Upvotes: 0

Gollen
Gollen

Reputation: 1

I also encountered this problem.You can try to reinstall appium on macOS Desktop. https://github.com/appium/appium-desktop/releases/tag/v1.6.3 select appium-desktop-1.6.3-mac.zip

Upvotes: 0

Wasiq Bhamla
Wasiq Bhamla

Reputation: 959

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

$ brew install carthage

For more details refer here.

Upvotes: 10

Related Questions