Skip to content

iOS Developer Setup

Hwee-Boon Yar edited this page Nov 3, 2019 · 3 revisions

Tools

  • AppCode (along with Xcode)
  • Reveal
  • Charles
  • xScope

Xcode

Multiple Versions of Xcode in Parallel

Don't download Xcode from the macOS App Store. Instead download it from Apple's download site. Keep the version you primarily use as Xcode.app and rename the others, e.g Xcode10.1.app.

Set the active version to use:

$ sudo xcode-select -s /Applications/Xcode10.1.app/Contents/Developer/

Check the active version:

$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

Some tools check for them. If you only use Xcode, it probably doesn't matter.

If you use AppCode, you need to point it to the Xcode you want to use in AppCode's settings. Search for Xcode

Using Older Versions of Xcode to Build for New Versions of iOS

This is for the scenario: "whoops, I upgraded my iPhone to iOS 12.2 and can't build it with Xcode 10.1 anymore". You then proceed to download Xcode 10.2.1 and find that you need macOS Mojave to run the latest Xcode and you don't want to risk your setup breaking by upgrading macOS.

Copy the folder matching the iOS version you need from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to your older Xcode.

eg.

$ cp "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.2 (16E226)" /Applications/Xcode10.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport