Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created September 19, 2023 11:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcharlton/cd0fd788a6b5a3dfa45e119128838f50 to your computer and use it in GitHub Desktop.
Save nickcharlton/cd0fd788a6b5a3dfa45e119128838f50 to your computer and use it in GitHub Desktop.
Gist from Drafts

Installing multiple versions of Xcode

When Xcode is upgraded between major versions (for example 14 to 15), the whole compiler toolchain is upgraded along with support for the new platforms targeted. Sometimes this causes problems, like when deprecated APIs are finally removed.

These changes always happen around significant operating system releases, like when a new version of iOS is released towards the end of September. A good short-term solution is to install the old version of Xcode alongside the current one.

  1. Fetch the last Xcode (for example 14.3.1 which is the last before 15) from the Developer Console (you'll need to be signed in with your Apple Developer account): https://developer.apple.com/download/all/?q=xcode%2014
  2. Extract and move it to /Applications, but with a name matching the version, e.g.: Xcode 13.4.1.app
  3. You should now be able to open your project in Xcode and it build successfully again.

If you need to change the command line tool as well, use xcode-select: sudo xcode-select --switch /Applications/Xcode\ 14.3.1.app

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