Unable to build XCUI WebDriverAgent
See original GitHub issueThe problem
I am facing errors when trying to build the XCUI WebDriver Agent either automatically through Appium or manually.
Environment
- Appium version (or git revision) that exhibits the issue: 1.13.0
- Last Appium version that did not exhibit the issue (if applicable): -
- Desktop OS/version used to run Appium: Mac OS 10.14.5
- Node.js version (unless using Appium.app|exe): 12.6.0
- Npm or Yarn package manager: npm 6.9.0
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: 12.1
- Appium CLI or Appium.app|exe: CLI
Details
I am trying to build the WebDriverAgent by running the following script within the Appium project:
$ cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
$ ./Scripts/bootstrap.sh
This is the corresponding terminal output:
Fetching dependencies
*** Checking out RoutingHTTPServer at "v1.0.2"
*** Checking out YYCache at "1.1.0"
*** Checking out CocoaAsyncSocket at "7.6.3"
*** xcodebuild output can be found in /var/folders/rb/txhm8kys5fd0b3k5rq55_7400000gp/T/carthage-xcodebuild.0Eifmr.log
*** Downloading CocoaAsyncSocket.framework binary at "Version 7.6.3"
*** Building scheme "RoutingHTTPServer tvOS" in RoutingHTTPServer.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer/RoutingHTTPServer.xcodeproj -scheme RoutingHTTPServer\ tvOS -configuration Release -derivedDataPath /Users/sdine/Library/Caches/org.carthage.CarthageKit/DerivedData/10.3_10G8/RoutingHTTPServer/v1.0.2 -sdk appletvos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/rb/txhm8kys5fd0b3k5rq55_7400000gp/T/RoutingHTTPServer SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Checkouts/RoutingHTTPServer)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/rb/txhm8kys5fd0b3k5rq55_7400000gp/T/carthage-xcodebuild.0Eifmr.log
As we can see in the log, there seem to be missing imports.
Link to Appium logs
https://gist.github.com/sebastiandine/3803f54a2996d3469cdda019a00ee0ca
Code To Reproduce Issue [ Good To Have ]
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Unable to launch WebDriverAgent because of xcodebuild failure
Original error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at ht…...
Read more >appium-xcuitest-driver - npm
Full path to an optional Xcode configuration file that specifies the code signing identity and team for running the WebDriverAgent on the real...
Read more >Beginners guide for Appium Automation for iOS apps
First time when you build the project, a WebDriverAgentRunner app will be installed on the device, and the build will fail with following...
Read more >Appium v1.6.0 - How to setup iOS automation with XCUITest ...
Your browser can't play this video. ... Web driver agent setup 5. ... Appium xcuitest driver : https://github.com/appium/appium- xcui.
Read more >webdriverio/webdriverio - Gitter
The only "building" of code that was required was the WebDriverAgent ... I am trying to run serenityjs in docker, but the execution...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok thanks. I now solved this issue via transferring my Anaconda stuff into a Docker container since it caused too much trouble with this. Now WebDriverAgent is building and the app is actually starting via Appium.
It calls
xcodebuild
via Node process. e.g. https://github.com/appium/appium-xcuitest-driver/blob/aa9b6648ef96b5ec9cde86eea93d4ed031fbe4da/lib/wda/xcodebuild.js#L114 clang is handled by xcodebuild. https://github.com/appium/WebDriverAgent/blob/master/Scripts/bootstrap.sh also calls simplycarthage
, for example.If your environment hacked some Xcode internals via some dependencies like anaconda stuff, some changes happen inside xcodebuild, I guess.