Adding Device Support to Xcode

Need to test a beta release of iOS but on the shipping version of Xcode? Here's how!

2 November 2016
About a 1 minute read.

There are times when new versions of iOS are released, or released in beta, and developers need to test apps on those devices even though the version of Xcode they are using doesn’t support them. Here’s how to add support.

First, download the corresponding version of Xcode that has the correct device support. For example, as I write this, Xcode 8.2 beta is available to developers, and iOS 10.2 is as well.

  1. Unzip the Xcode beta
  2. In Finder, find the app and right click (or two finger tap) to bring up the context menu.
  3. Select Show Package Contents
  4. Navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  5. Select the folder for the required device, such as 10.2 and bring up the context menu and select copy
  6. From Finder, select the app you wish to add device support to, such as Xcode 8.1 in my current case.
  7. Using the process from above navigate all the way to the DeviceSupport folder and paste.
  8. Restart Xcode.

You should now be able to build on the older Xcode, and deploy to the beta iOS.

Other developers recommend creating a symlink to the folder instead of copying it.

For example, StackOverflow user Max Potapov suggests in this answer running the following in terminal, which he used to add iOS 7.x device support into Xcode 8.

sudo ln -s /Applications/Xcode-7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.01. \ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

by:
David Lari

https://davidlari.com
Interests: programming, writing, science, history. You might also find me playing some PC Games.