Hi folks,
We’re in the process of migrating our iOS build from CircleCI 1.0 to 2.0 and are running into a problem with installing gems.
When we try to run bundle install
we get the following output:
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/
Exited with code 17
Our Gemfile is as follows:
source "https://rubygems.org"
gem 'fastlane', '2.93.1'
gem 'cocoapods'
gem 'cocoapods-bugsnag'
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Our circle-ci config is as follows:
deploy_systest:
macos:
xcode: "9.0"
parallelism: 1
working_directory: ~/[ REDACTED ]/apps
environment:
BUNDLE_PATH: ./ios/vendor/bundle
steps:
- checkout
- restore_cache:
keys:
- v1-dep-{{ .Branch }}-
- v1-dep-master-
- v1-dep-
- run: brew update
- run: brew install imagemagick
- run:
name: Install Gems
working_directory: ./ios
command: |
pwd
bundle check || bundle install --path vendor/bundle
- run:
name: Install CocoaPods
working_directory: ./ios
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
pwd
pod install
- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- ./node_modules
- ./ios/Pods
- ./ios/vendor/bundle
- run:
working_directory: ./ios
command: |
pwd
bundle exec fastlane systest
Any help would be much appreciated!
Cheers,
Matt