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