Xcode Cloud: Gem install failures

Getting these errors for most (but not all) builds:

ERROR: Could not find a valid gem 'drb' (= 2.0.6), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Failed to open TCP connection to rubygems.org:443 (Connection reset by peer - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)

ERROR: Could not find a valid gem 'activesupport' (= 6.1.7.6), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Failed to open TCP connection to rubygems.org:443 (Connection reset by peer - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)

ERROR: Could not find a valid gem 'cocoapods' (= 1.14.3), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Failed to open TCP connection to rubygems.org:443 (Connection reset by peer - connect(2) for "rubygems.org" port 443) (https://rubygems.org/specs.4.8.gz)

from this code in ci_post_clone.sh:

gem install drb -v2.0.6

gem install activesupport -v6.1.7.6

gem install cocoapods -v1.14.3

Xcode environment:

XCODE VERSION: Xcode 15.2 (15C500b)

MACOS VERSION: macOS Sonoma 14.3.1 (23D60)

Any help would be greatly appreciated!

Execute these commands in terminal for macOS Sonoma (14.4) -----

  • export GEM_HOME="$HOME/.gem"
  • export PATH="$HOME/.gem/ruby/2.6.0/bin:$PATH"
  • gem install drb -v 2.0.6

Hopefully you pods will be installed successfully.

Xcode Cloud: Gem install failures
 
 
Q