72
votes

My device is running iOS 12.2, but the latest Xcode version available (on the store, and directly from developer.apple, which just pushes me to the store) does not provide the support files for that iOS version, so I cannot build to devices.

Here's the error message from Xcode:

enter image description here

And my Xcode build running on macOS Mojava v.10.14:

enter image description here

Are there any reputable other places to download a more recent Xcode beta from (or just the support files, in Xcode > Contents > Developer > Platforms > iPhoneOS.platform > DeviceSupport), or am I missing something here?

7
Search harder. The answer is here somewhere, I found it a few days ago but didn’t keep the link. You copy some folder to a place inside Xcode. I found 16E226 then just renamed it to 16E227, working fine now.David H
I tried latest XCode version and it doesn't contain device support files for 16E227 build.kapil
@DavidHI have been looking for this from lat week. I wasted a complete day to downgrade my iOS version. I doubt he is able to going to find it unless you point us at it.kapil
Your Xcode is not the latest. Download Xcode 10.2.matt
@david-h Your hack saved me from upgrading my old Mac Pro to OS Mojave, potentially costing me a new GPU, as OS Mojave is required by XCode 10.2. Thank you!Alexander Ryzhov

7 Answers

143
votes

Download device support files from here -https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2%20(16E226).zip, if your Xcode version doesn't have them. Extract the zip file and copy to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport. Rename 16E266 folder to 16E227. Restart XCode.

As pointed out by @DavidH, this worked for me.

9
votes

After copying and renaming the folder, if problem persists, restart the Mac.

3
votes

I had the same issue. I was about to download the https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2%20(16E226).zip and paste it in the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport path but I think it's not the normal flow. Later, I remembered that I almost never download the Operating System updates. My solution was:

  1. Go to about this mac -> Software Update (Operating System Updates).
  2. After downloading and installing update you'll be able to Update Xcode.
  3. Go to App Store -> search xcode and you could update Xcode successful.

In conclusion: I needed to install updates for my macOS Operating System.

3
votes

Need iOS 13.4 support in XCode 11.3.1 ?

You updated your iPhone iOS to 13.4 ?

You don't want to upgrade your OSX to Catalina in order to get the latest XCode 11.4?

Download the XCode release that does support your device from here: https://developer.apple.com/download/more

Extract the zip file, right click on Xcode.app, click on "Show Package Contents"

Go into folder: Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport

Find your iOS version you need support for and copy that folder to your existing Xcode.app within the same folder.

DONE.

This process will work for new and old versions of iOS & XCode.

2
votes

Here is source file.

After copy downloaded folder to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport , restart Xcode then it will work. Hope this will help you.

0
votes

I download the Developer disk image for iOS 13.0 from here and added support file in Xcode Version 10.3 (10G8).

https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/13.0.zip

Follow Those steps. 1) Unzipped downloaded file

2) Right click on Xcode and click on Show Package Content.

3) Then paste your file on path.

Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport

Then Restart Your Xcode. It works for me.

0
votes
  • Download iOS developer disk image 12.2 and unzip it
  • Go Application>Xcode>Contents>Developer>Platforms>iPhoneOS.Platform>DeviceSupport paste your folder there.
  • Restart your Xcode.