stephengazzard / xcodes

Manage the Xcodes installed on your Mac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xcodes

Manage the Xcodes installed on your Mac

Installation

From source

git clone https://github.com/interstateone/xcodes
cd xcodes
swift build -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.13"
cp $(swift build --show-bin-path)/xcodes /usr/local/bin/xcodes

Troubleshooting

While installing, you may get the following output:

swift build -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.13"
error: terminated(72): xcrun --sdk macosx --find xctest output:



If that occurs, it means you need to xcode-select a version of Xcode.

Usage

  • list: Lists the versions of Xcode available to download
  • install <version>: Downloads and installs a version of Xcode
  • installed: Lists the versions of Xcodes that are installed in /Applications on your computer
  • update: Updates the list of available versions of Xcode

Development

Notable design decisions are recorded in DECISIONS.md. The Apple authentication flow is described in Apple.paw, which will allow you to play with the API endpoints that are involved using the Paw app.

Credit

xcode-install and fastlane/spaceship both deserve credit for figuring out the hard parts of what makes this possible.

About

Manage the Xcodes installed on your Mac

License:MIT License


Languages

Language:Swift 100.0%