question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

appium 1.18.1 and Xcode 12 beta 6 - Building scheme "iOS Framework" in CocoaAsyncSocket.xcodeproj failure

See original GitHub issue

The problem

I’m trying to run my first test on Xcode 12 - Beta 6 but I get a Carthage failure when running ./Scripts/bootstrap.sh

Environment

  • appium version: 1.18.1 and v1.18.0-beta.1 (same results with both versions)
  • Node.js version (unless using Appium.app|exe): v12.18.3
  • Mobile platform/version under test: iOS 14.0 Simulator (Xcode 12, Beta 6 - 12A8189n)
  • macOS version: Catalina 10.15.6 (19G2021)
  • Carthage version: 0.35.0

Details

  • When I first ran ./Scripts/bootstrap.sh I got the this error:

[debug] [WebDriverAgent] *** Building scheme "iOS Framework" in CocoaAsyncSocket.xcodeproj
[debug] [WebDriverAgent] Build Failed
[debug] [WebDriverAgent] 	Task failed with exit code 1:
[debug] [WebDriverAgent] 	/usr/bin/xcrun lipo -create /Users/testuser/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A8189n/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/testuser/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A8189n/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
[debug] [WebDriverAgent] This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/41/0dtvw_tx4v11gntm929t_lsm0000gs/T/carthage-xcodebuild.NH6ujt.log
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1599115027018 (07:37:07 GMT+0100 (British Summer Time))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1

Full log here: appium.log


*** Building scheme "YYCache iOS" in YYCache.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework/YYCache.xcodeproj -scheme YYCache\ iOS -configuration Release -derivedDataPath /Users/testuser/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A8189n/YYCache/1.1.0 -sdk iphonesimulator -destination platform=iOS\ Simulator,id=8FC4ADFD-9205-467B-A0CF-BEB43576CDC5 -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/41/0dtvw_tx4v11gntm929t_lsm0000gs/T/carthage-xcodebuild.BRhXUe.log

Full logs here: bootstrap.log carthage.log

Please advice.

Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
KazuCocoacommented, Sep 6, 2020
1reaction
KazuCocoacommented, Sep 10, 2020

Please try out appium@beta for Xcode 12 beta.

We’re not sure what Xcode will be in its release (they are adding changes in its beta releases), and the current workaround will be. so the release will be after Xcode release at least, I guess.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Here is an error "'CocoaAsyncSocket/GCDAsyncSocket.h' file ...
After my upgrade the xcode version to the Version 12.0 beta 4 . and connect my mobile ... Building scheme "iOS Framework" in...
Read more >
Unable to launch WebDriverAgent because of xcodebuild failure
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. Building for iOS, but the embedded framework 'CocoaAsyncSocket.
Read more >
Appium issues at MAC - Support
I made a Hello World app with XCode to test installing and launching the app, but I have the same problems… Here are...
Read more >
Can someone using appium(1.18) with Xcode 12 and iOS 14
Hi, I am trying to install webdriveragentrunner for Xcode 12 with appium 1.18? observing error as build failed. could someone help me out....
Read more >
Appium Is not working after xcode11 update - Issues/Bugs
Good Day, I updated xcode to 11 from 10 and after that i faced a ... when I execute my test case the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found