Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lokst
Last active April 18, 2019 13:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lokst/3985c1d7610afde9f8a75b79a36496ed to your computer and use it in GitHub Desktop.
Save lokst/3985c1d7610afde9f8a75b79a36496ed to your computer and use it in GitHub Desktop.
Sample steps to manually update Xcode to latest 10.2 version (not necessary once the Xcode 10.2 GA version image has been released on CircleCI)
version: 2
jobs:
build:
macos:
xcode: "10.2.0"
steps:
- run:
name: Update Xcode to latest 10.2 version
command: |
# Requires setting the XCODE_INSTALL_USER and XCODE_INSTALL_PASSWORD
# environment variables
# See: https://github.com/xcpretty/xcode-install#usage
xcodebuild -version
sudo gem install xcode-install
xcversion uninstall 10.2
xcversion update
xcversion install 10.2
xcodebuild -version
# Expect this to take at least 20 minutes
no_output_timeout: 60m
workflows:
version: 2
build-and-deploy:
jobs:
- build
@dai-cb
Copy link

dai-cb commented Apr 9, 2019

Getting this error:

# Requires setting the XCODE_INSTALL_USER and XCODE_INSTALL_PASSWORD
# environment variables
# See: https://github.com/xcpretty/xcode-install#usage
xcodebuild -version
sudo gem install xcode-install
xcversion uninstall 10.2
xcversion update
xcversion install 10.2
xcodebuild -version
^D��^D��Xcode 10.2
Build version 10P99q
Successfully installed xcode-install-2.5.0
1 gem installed
-------------------------------------------------------------------------------------
Please provide your Apple Developer Program account credentials
The login information you enter will be stored in your macOS Keychain
You can also pass the password using the `FASTLANE_PASSWORD` environment variable
See more information about it on GitHub: https://github.com/fastlane/fastlane/tree/master/credentials_manager
-------------------------------------------------------------------------------------
Username: /Library/Ruby/Gems/2.3.0/gems/highline-1.7.10/lib/highline.rb:868:in `get_line': The input stream is exhausted. (EOFError)
	from /Library/Ruby/Gems/2.3.0/gems/highline-1.7.10/lib/highline.rb:891:in `get_response'
	from /Library/Ruby/Gems/2.3.0/gems/highline-1.7.10/lib/highline.rb:264:in `ask'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/forwardable.rb:202:in `ask'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/credentials_manager/lib/credentials_manager/account_manager.rb:129:in `ask_for_login'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/credentials_manager/lib/credentials_manager/account_manager.rb:37:in `user'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/client.rb:373:in `login'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/client.rb:346:in `login'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/portal/spaceship.rb:25:in `login'
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.116.0/spaceship/lib/spaceship/portal/spaceship.rb:103:in `login'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install.rb:335:in `spaceship'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install.rb:375:in `fetch_seedlist'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install.rb:199:in `seedlist'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install.rb:413:in `list_versions'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install.rb:305:in `list'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/lib/xcode/install/update.rb:10:in `run'
	from /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
	from /Library/Ruby/Gems/2.3.0/gems/xcode-install-2.5.0/bin/xcversion:12:in `<top (required)>'
	from /usr/local/bin/xcversion:22:in `load'
	from /usr/local/bin/xcversion:22:in `<main>'
Exited with code 1

Is this something I have to do (I have them saved locally), or something CircleCi needs to fix?

@ganezasan
Copy link

Hi, @dai-cb
I got this same error message. If we set these Environment variables below, we could run the build.

  • XCODE_INSTALL_USER (apple account)
  • XCODE_INSTALL_PASSWORD (apple account)
  • FASTLANE_SESSION

@iwasrobbed-ks
Copy link

Looks like a great way to charge customers even more money by using up more machine time instead of enabling us to use proper macOS machine images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment