Xcode Cloud builds failing intermittently with network issues

My Xcode Cloud builds are failing intermittently with network issues when download SPM dependencies.

In particular today was the facebook SDK binaries, which does exist as I tested separately:.

Kind of annoying, as there isn't anything I can do to resolve this I think.

failed downloading 'https://github.com/facebook/facebook-ios-sdk/releases/download/v14.0.0/FBSDKCoreKit-Static_XCFramework.zip' which is required by binary target 'FBSDKCoreKit': downloadError("Error Domain=NSURLErrorDomain Code=-1005 \"The network connection was lost.\" UserInfo={NSURLSessionDownloadTaskResumeData={length = 7045, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 00001adf }, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <9ABA1AD6-45B3-48E7-BC6C-A8CD11DA5E14>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n    \"LocalDownloadTask <9ABA1AD6-45B3-48E7-BC6C-A8CD11DA5E14>.<3>\"\n), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://objects.githubusercontent.com/github-production-release-asset-2e65be/738491/36b15867-27f1-4ac5-8c79-fffc1a9cfd4a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220705T074918Z&X-Amz-Expires=300&X-Amz-
Post not yet marked as solved Up vote post of bandejapaisa Down vote post of bandejapaisa
2.0k views
  • have you found a solution to this?

Add a Comment

Replies

I am also seeing this. It looks like its saying the network connection is lost from the logs, it is only happening for Facebook on my build as well which is strange. Might be the size of the download that is the problem?

Same problem here with the Facebook SDK

I got a random failure for Phrase SDK

failed downloading 'https://github.com/phrase/ios-sdk/releases/download/4.0.1/PhraseSDK.xcframework.zip' which is required by binary target 'PhraseSDK': downloadError("Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made

The issue I have is similar. I have problems during the script ci_post_clone.sh. My brew commands randomly fail with network errors. Here is a few exemples :

  1. curl: (35) error:02FFF036:system library:func(4095):Connection reset by peer Error: node: Failed to download resource "c-ares"
  2. curl: (35) error:02FFF036:system library:func(4095):Connection reset by peer Error: cocoapods: Failed to download resource "cocoapods"

Having the same issue.

The issue seems to be fixed. I had 2 sucessfull builds yesterday.

  • Interesting did u change anything?

Add a Comment

I also got this error while try to install brew