Skip to content

Some homebrew formulas for installing Xcode and old Xcode SDKs

Notifications You must be signed in to change notification settings

toonetown/homebrew-xcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homebrew-xcode

Homebrew tap with formulas and casks for installing Xcode, legacy SDKs, and other developer tools.

Installation

To install: brew tap toonetown/homebrew-xcode.

Note: You will be unable to install the Xcode cask if you already have the appstore version installed.

Details

The Xcode cask will be installed into /Applications (or wherever you have --appdir set). The developer tool casks will be installed into /Applications/Developer (or within the Developer directory wherever you have --appdir set).

The legacy SDKs will be installed (on disk) in their individual Cellar directories, and they will be linked into ${HOMEBREW_PREFIX}/legacy-sdks. After each installation, they will also be linked into your Xcode installation using the link-sdks script.

IMPORTANT: If you are using the appstore version of Xcode, you must re-run link-sdks after EVERY upgrade to Xcode. This step will be performed automatically if using the Xcode cask.

Downloads

In order to use these formulas, you will need to download the binaries from Apple. This can be done by logging in with your developer account at https://developer.apple.com/downloads/ and then downloading the file. You can view the exact file that will be downloaded by running brew info or brew cask info and looking in the caveats section. Do not rename the files as you download them.

By default these formulas look for downloaded files in ${HOME}/Downloads - so downloading them directly from the web will be sufficient. However, you can set the environment variable HOMEBREW_XCODE_DOWNLOAD_PATH to any (full) URL and that will be used as the location for downloading the packages. If you want to download from a different local directory, make sure and use the file:// protocol in HOMEBREW_XCODE_DOWNLOAD_PATH.

The following is a list of downloads (and their locations) which need to be downloaded in order for all these formulas to work (i.e. if you want to run a private internal mirror). In order to download these, you must be logged in to https://developer.apple.com/downloads/

Name Download Used by
Xcode 15.4 Xcode_15.4.xip c:xcode
(And latest SDKs)
Xcode 14.3 Xcode_14.3.xip f:xc-sdk-osx13
f:xc-sdk-ios16
Xcode 13.4.1 Xcode_13.4.1.xip f:xc-sdk-osx12
f:xc-sdk-ios15
Xcode 12.5 Xcode_12.5.xip f:xc-sdk-osx11
f:xc-sdk-ios14
Xcode 11.7 Xcode_11.7.xip f:xc-sdk-osx1015
f:xc-sdk-ios13
Xcode 10.3 Xcode_10.3.xip f:xc-sdk-osx1014
f:xc-sdk-ios12
Xcode 9.4.1 Xcode_9.4.1.xip f:xc-sdk-osx1013
f:xc-sdk-ios11
Xcode 8.3.3 Xcode_8.3.3.xip f:xc-sdk-osx1012
f:xc-sdk-ios10
Xcode 7.3.1 Xcode_7.3.1.dmg f:xc-sdk-osx1011
f:xc-sdk-ios9
Xcode 6.4 Xcode_6.4.dmg f:xc-sdk-osx1010
f:xc-sdk-osx109
f:xc-sdk-ios8
Xcode 5.1.1 xcode_5.1.1.dmg f:xc-sdk-osx108
f:xc-sdk-ios7
*Xcode 4.6.3 xcode4630916281a.dmg f:xc-sdk-osx107
f:xc-sdk-ios6
*Xcode 4.4.1 xcode_4.4.1_6938145.dmg f:xc-sdk-ios5
**Xcode 3.2.6 and iOS SDK 4.3 for Snow Leopard xcode_3.2.6_and_ios_sdk_4.3.dmg f:xc-sdk-osx106
f:xc-sdk-osx105
f:xc-sdk-osx104
f:xc-sdk-ios4
f:xc-sdk-ios3
Graphics Tools for Xcode 7.2 Graphics_Tools_for_Xcode_7.2.dmg c:icon-composer
Auxiliary Tools for Xcode - Late July 2012 xcode44auxtools6938114a.dmg c:packagemaker

* Note: The SDKs from these versions of Xcode are untested and may not work or link without additional patches or packages. See how this project handles compilers and patches for details.

** Note: The SDKs that depend upon Xcode 3.2.6 have not yet been implemented.

*** Converting xip to dmg

Beginning with Xcode 8, Apple is distributing Xcode as an xip archive. See below (or brew cask xcode info) for directions on converting the xip to a dmg

After downloading the file, convert the xip to a dmg by opening a terminal to the folder where the xip is placed and run the following commands:

  $ xip -x Xcode_X_Y_Z.xip && \
    mkdir Xcode-tmp && \
    mv Xcode.app Xcode-tmp/Xcode.app && \
    hdiutil create -volname "Xcode" \
                   -srcfolder Xcode-tmp \
                   -ov -format UDZO \
                   Xcode_X_Y_Z.dmg && \
    rm -rf Xcode-tmp && \
    shasum -a 256 Xcode_X_Y_Z.dmg

iOS SDKs

The iOS SDKs include both iPhoneOS and iPhoneSimulator combined. Only the last released version of each iOS major SDK is provided - which are:

  • iOS 16.4 (as xc-sdk-ios16)
  • iOS 15.5 (as xc-sdk-ios15)
  • iOS 14.5 (as xc-sdk-ios14)
  • iOS 13.7 (as xc-sdk-ios13)
  • iOS 12.4 (as xc-sdk-ios12)
  • iOS 11.4 (as xc-sdk-ios11)
  • iOS 10.3 (as xc-sdk-ios10)
  • iOS 9.3 (as xc-sdk-ios9)
  • iOS 8.4 (as xc-sdk-ios8)
  • iOS 7.1 (as xc-sdk-ios7)
  • iOS 6.1 (as xc-sdk-ios6)
  • iOS 5.1 (as xc-sdk-ios5)
  • iOS 4.3 (as xc-sdk-ios4)
  • iOS 3.2 (as xc-sdk-ios3)

About

Some homebrew formulas for installing Xcode and old Xcode SDKs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages