Intern on IOS - Unable to launch WebDriverAgent because of xcodebuild failure: not found: carthage

1.9k Views Asked by At

When I am running Intern Standalone staring appium and then Running Intern Script Script perfectly works

By when I Run same using java Program at that time it gives issue

UnknownError: [POST http://localhost:65505/wd/hub/session / {"desiredCapabilities":{"name":"DS/tests/intern.js","idle-timeout":60,"platformName":"iOS","deviceName":"iPhone 6","bundleId":"com.apple.mobilesafari","automationName":"XCUITest","Simulator":true}}] An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: not found: carthage at Server.createSession

Carthage is installed correctly Is there any access issue to it

Please please help

1

There are 1 best solutions below

0
MDK On

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