appium: Cannot launch WebDriverAgent : error - 'carthage bootstrap --platform iOS\,tvOS'

The problem

I cannot launch WebDriverAgent due to the following error shown in the Appium server log.

[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1 [XCUITest] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/lib/driver.js:527:15)

Could anyone help me please?

Environment

Xcode Version 10.1 (10B61)

  • Appium version 1.15.1
  • Desktop OS/version used to run Appium: Mac
  • Mobile platform/version under test: IOS
  • Real device or emulator/simulator: simulator

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 28 (3 by maintainers)

Most upvoted comments

I am also facing the same issue. Any solution here?

I am using appium 1.18.0-beta.1 and none of the solution provided works for me. Any idea? I have tried doing carthage bootstrap --platform iOS,tvOS but it does not work.

*** Checking out YYCache at "1.1.0"
*** Checking out CocoaAsyncSocket at "72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc"
*** xcodebuild output can be found in /var/folders/yf/cmjdckl115qgcylj1krb19x40000gn/T/carthage-xcodebuild.phy5x2.log
*** Building scheme "iOS Framework" in CocoaAsyncSocket.xcodeproj
Build Failed
	Task failed with exit code 1:
	/usr/bin/xcrun lipo -create /Users/alfredobazolopez/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A8189h/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/alfredobazolopez/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A8189h/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/iOS/CocoaAsyncSocket.framework/CocoaAsyncSocket

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/yf/cmjdckl115qgcylj1krb19x40000gn/T/carthage-xcodebuild.phy5x2.log

@mayusn I think I ran into your issue with carthage. Make sure you are running the latest Carthage version 0.4.0. You can confirm this by running carthage version on your machine. If you are not on the latest version you will probably see a message like this Please update to the latest Carthage version: 0.34.0. You currently are on 0.33.0. You can update Carthage by running: brew upgrade carthage

After upgrading Carthage then run

$ cd /<appium_setup_directory>/appium/node_modules/appium-webdriveragent/
$ carthage bootstrap --platform iOS\,tvOS

on your appium setup to test if it works. Hope this helps!

I am also facing same issue Appium Desktop: 1.18.0-2 Node.js:12.8.1 Electron: 7.2.4 xcode: 12.0 carthage:0.36.0

error: [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘carthage bootstrap --platform iOS,tvOS’ exited with code 1 [MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:532:15) [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:562:11 [MJSONWP] at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13) [MJSONWP] at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13) [MJSONWP] at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10) [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:542:7

No good idea for me. Probably your environment has different(?) issue I haven’t seen, unfortunately.