4

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)

4

3 回答 3

10

您需要先在您的机器上安装 Carthage,方法是在终端上执行以下命令

$ brew install carthage

有关更多详细信息,请参阅此处

于 2018-03-13T15:30:15.783 回答
0

Carthage 文件夹有问题,请检查以下路径 /Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent

Carthage 文件夹如果不存在,请按照以下步骤操作

Step-1 : Appium 1.15.1 及以上版本

在终端中打开以下路径 $ cd /Applications/Appium.app/Contents/Resources/app/node_modules

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

步骤 2:转到 1) $ cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent

2) sudo mkdir -p 资源/WebDriverAgent.bundle

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

步骤 3:构建带有标志的 WebDriverAgent 项目

在 XCode /Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj 中打开以下项目

于 2020-02-28T05:42:09.243 回答
0

我也遇到了这个问题。你可以尝试在macOS桌面上重新安装appium。 https://github.com/appium/appium-desktop/releases/tag/v1.6.3 选择appium-desktop-1.6.3-mac.zip

于 2018-08-24T12:05:14.610 回答