When I connect iOS device with 16.2 OS version.
Xcode shows unsupported OS version.
Because I don't have the device support files for iOS 16.2
So how can I download the device support files for iOS 16.2.
You can download device support files at https://github.com/filsv/iOSDeviceSupport but if you want to get 16.2 then it should be enough to download the latest version of Xcode. I have iOS version 16.2 and have version of Xcode 14.2 (14C18).
Without updating Xcode, you need to put the relevant device file in the DeviceSupport section and run Xcode again. DeviceSupport files are located here.use this command
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can download iOS 16.2 devicesupport file from here, then you need to unzip (download 16.0 and rename it to 16.2), then you need to put it in DeviceSupport section on your mac.
When you restart Xcode, there should be no problem.
Related
After updating iPhone iOS version to 14.7+, Xcode 12.4 can no longer build to that iPhone device.
In Xcode when choosing a Build Destination (Product > Destination > [device] or from the UI dropdown shown below) the newly updated iPhone will have beside it (unsupported OS version):
iPhone listed with "(unsupported OS version)".
Can't Upgrade to Big Sur / Xcode 12.5
I'm stuck on Mac OS Catalina (old hardware) and cannot upgrade to Xcode 12.5 which requires Big Sur.
How can we add/update device support to Xcode to build to an unsupported iPhone version (iOS 14.7+)?
Add/Update Unsupported iOS Version to Xcode
Apple has no plans to update Xcode 12.4 to support iOS 14.6, 14.7, etc.
But we can copy Xcode version 14.5 DeviceSupport files (download if needed) and paste (or symlink) them into directories named 14.6, 14.7, etc. (Thanks to #LPG for note on symbolic links.)
Xcode DeviceSupport Directories
Xcode DeviceSupport directories are located at:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
(In Finder, right-click on /Applications/Xcode & choose Show Package Contents)
The list of directories will not include 14.6, 14.7 (or perhaps not even 14.5).
(If 14.5 directory is already present, simply copy/paste or symlink that directory to duplicate it with name as 14.6 or 14.7, etc. as needed, otherwise...)
Get DeviceSupport Files
The quickest way to grab device support files is from this (unofficial) Github project:
https://github.com/iGhibli/iOS-DeviceSupport
In particular, we want the 12.5 release candidate zip file (14.6, 14.7 do not exist yet):
https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/14.5(FromXcode_12.5_Release_Candidate_xip).zip
Inside the 12.5 Release Candidate in Github, download this .zip
After the files are downloaded, double click on the .zip file to unpack them into a 14.5 directory:
Add DeviceSupport 14.5 / 14.6 / 14.7 to Xcode
Copy and paste the 14.5 directory into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
Make a duplicate of 14.5 directory by copy and pasting it into the same directory (into DeviceSupport) then rename the directory to 14.6, 14.7, etc. as necessary.
If Xcode is open, Clean Build Folder (under Product menu heading). I'm unsure if this is strictly necessary. (The next time I attached my phone, Xcode also updated & processed cache files from the device itself, which took several minutes.)
Close Xcode (if open).
Attach iPhone via USB. If you haven't already updated your Mac OS to support your phone on 14.6 / 14.7, your Mac may ask you to update the Mac OS software in order to connect to your iOS 14.6 / 14.7 device. I accepted this update request. It took several minutes to complete. (I believe this is unrelated to Xcode, rather iTunes, & other Mac services, etc.)
I needed to reboot my Mac after this. Unsure if this is required for everyone.
Open Xcode. Open the build destinations dropdown beside Runner and your iPhone 14.6 / 14.7 device should (hopefully) no longer has the "(unsupported os version)" note beside it.
Now as a supported 14.6 / 14.7 phone device under Xcode 12.4, you should be able to build debug, profile & release versions of your app to your physical iPhone.
Other Issues
"Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window"
try rebooting your phone / iOS device
This might be a temporary solution but here is what worked for me:
Go into contents/Developer/platform/iPhoneOS.platform/DeviceSupport
Copy your previous iOS 14.5 the device support file or older version
Paste into the same folder and change the iOS number to 14.6
Restart Xcode, and it should let you run your code on your phone
FYI this has worked for me before too for a different iOS so it might be able to help for later versions if anyone gets stuck or cant run Xcode on their phone.
#Baker's solution worked for me
In my case I had xcode 12.3 and wanted to run app on my iPhone ios 14.6
close xcode
download 14.5(FromXcode_12.5_Release_Candidate_xip).zip
unzip 14.5(FromXcode_12.5_Release_Candidate_xip).zip it will give you folder 14.5
copy folder 14.5 to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
then copy folder 14.5 to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and rename to 14.6
after step 4 you should have something like ../iPhoneOS.platform/DeviceSupport/14.5 and ../iPhoneOS.platform/DeviceSupport/14.6
launch xcode run your app
you might need to restart your iPhone if it stucks on iPhone is busy: Preparing debugger support for iPhone
Xcode will continue when iPhone is finished.
Download iOS Device Support Here: https://youtu.be/akhC3W4S9a0?t=21
How to:
Download version you need listed above;
Unzip it;
Close Xcode;
Copy and paste unziped folder by path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Restart Xcode
Open Terminal and type
open /applications/xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
If you have more than 1 version open the one that you need
On finder, Right Clic on latest version and Duplicate
Change the name of version that you need
We need to add “Device Support Files” for device iOS version number in XCode App Content path
contents/Developer/platform/iPhoneOS.platform/DeviceSupport
To Download "Device Support Files" for desired iOS Version - You can download from internet by searching like this
ios 14.7 device support for xcode
I downloaded from this first link and paste in the above mentioned xcode App Content path where you must have to make folder first for Version number like 14.7. It worked then.
Link is: https://github.com/filsv/iPhoneOSDeviceSupport
This might not be the right answer for everyone, but for me I just needed to upgrade the operating system on my computer. (Note also that the error says "Unsupported OS version", not iOS version.) I was on Catalina with XCode 12.5. After upgrading to Monterrey with Xcode 13.1, all worked fine.
Use this link for updated support files.
https://github.com/iGhibli/iOS-DeviceSupport
Also, In case you are stuck between the version being launched and support files not updated on the link. Try renaming the last updated file folder with new version and paste it into the given directory. Tried that for iOS 15.6, Have renamed the 15.5 folder with 15.6 and it's working.
Background on problem:
I have an iPhone 6s that has updated itself to iOS 13.4. Before the iOS update, I could code + run my app on the device from Xcode, great.
Now I can't run my app from Xcode on the device to test my code, as it says:
Xcode could not locate device support files
This iPhone 6s is running iOS 13.4 (17E255), which may not be supported by this version of Xcode. An updated version of Xcode may be found on the App Store or at developer.apple.com.
So I tried installing the latest Xcode (11.4) which now says I have to update my whole OS to Catalina.
I don't want to do this as my system is working fine and I have heard bad things about that release.
Question:
Is there a way I can get Xcode building to my iPhone without updating my whole OS and potentially screwing up my whole machine?
You cannot run Xcode 11.4 on Mojave but you can add support for iOS 13.4
Download the 13.4 image from this repo
Quit Xcode
Unzip the archive and move the folder into /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Launch Xcode
Consider that this way adds only the support for iOS 13.4, nothing else.
Update: This does not work with iOS 14 because iOS 14 requires Xcode 12.
Here's an alternative solution that doesn't require downloading files from an untrusted source:
Install the latest release of Xcode that runs on Mojave (currently Xcode 11.3.1). It can be downloaded from Apple's developer pages.
From the same page, download a release of Xcode that supports iOS 13.4 (for example Xcode 11.4.1). Unzip it, rename it to "Xcode-11.4.1.app" and move it to the Applications folder, but don't run it.
Add a symbolic link for iOS 13.4 from the DeviceSupport folder in Xcode 11.4.1 to Xcode 11.3.1, as described in Peter Steinberger's Gist.
If you use the versions used in this answer, the command to add the symbolic link would be
sudo ln -s /Applications/Xcode-11.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can run Xcode 11.4 - 11.7 on your Mac which is running 10.14.
Download Xcode 11.4 ~ 11.7 from https://developer.apple.com/download/
Extract the .xip file, and you will get Xcode.app
Modify LSMinimumSystemVersion in Xcode.app/Contents/Info.plist from 10.15.x to 10.14
Now you can use Xcode 11.4 ~ 11.7 without upgrading to Catalina.
However, this trick doesn't work for Xcode 12, which requires some frameworks that do not exists in macOS Mojave.
My Apple TV 4K was running tvOS 13.3 and I upgraded to 13.4 which required that I use this technique to keep working with Xcode 11.3.1.
What is odd is that in the DeviceSupport folder, Xcode 11.3.1 only ships with tvOS up to 13.2. So how did it ever work with a hardware device running 13.3? I guess 13.2 and 13.3 are close enough that 13.2 still works.
13.4 does not work out of the box, so I copied both 13.3 and 13.4 from the Xcode 11.4.1 app into my 11.3.1 app. All is well again.
You can run Xcode 11.4 - 11.7 on your Mac which is running 10.14.
Download Xcode 11.4 ~ 11.7 from https://developer.apple.com/download/
Extract the .xip file, and you will get Xcode.app
Modify LSMinimumSystemVersion in Xcode.app/Contents/Info.plist from 10.15.x to 10.14.6
Now you can use Xcode 11.4 ~ 11.7 without upgrading to Catalina.
However, this trick doesn't work for Xcode 12.
I tried this trick on my mac mojave 10.4.6
I have installed Xcode 11 GM and can't find iOS 12.4.1 simulator anymore. iOS 12.4.1 was installed in Xcode 10.3, but it is not available in Xcode 11 for some reason (not only iOS 12.4 - other simulators are also missing). Moreover, I can't download it via "Add Additional Simulators..." - the latest one available is 12.2. Any ideas why so and how to fix? 🤔
Thanks!
iOS 12.4 simulator files can be found in the Xcode 10.3 app bundle. While you can't download it from within Xcode (at the moment), you can simply copy them to the folder where additional simulators are usually installed. Go to the following subfolder, it is located inside Xcode.app (10.3):
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes
and copy the iOS.simruntime package to here:
/Library/Developer/CoreSimulator/Profiles/Runtimes
Rename iOS.simruntime to iOS 12.4.simruntime.
Restart Xcode 11.
The 12.4 simulator is now available (in Xcode 11.1 at least):
This iPhone 8 (Model A1863, A1905, A1906, A1907) is running iOS 12.0 (16A5308e), which may not be supported by this version of Xcode. (Version 9.4.1 (9F2000))
can anyone help with iOS 12.x device support files from Xcode 10 beta?
iOS 12 is only supported by the beta of Xcode 10 or higher.
If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can see the iOS version folder of the iPhone, copy and past it to the same location in your Xcode 9.4 folder.
After this you should be able to deploy to your iPhone 8.
As answered by #Kerberos you can copy the iOS 12 device support files to:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
👉 https://github.com/Yatko/iOS-device-support-files
The link provided by Yatko is not supporting the newest iOS 12 versions (public release).
This repository has more iOS versions to offer: https://github.com/iGhibli/iOS-DeviceSupport
Copy the files to the same path as described by Kerberos.
Another convenient way to achieve this without downloading Xcode 10.
https://github.com/sauravexodus/xcode-9-ios-12-support
Note: If you have multiple Xcode versions then be careful with the path written in install.sh file.
Just download latest OS SDK (iOS 12.2) and paste it on respective location.
Downloadable URL:
13.2
13.1
13.0
12.4
12.3
12.2 (16E226)
12.1
12.0 (16A5288q)
11.4 (15F5037c)
11.3 (15E5189d)
11.2
11.1
11.0 (15A372)
10.3 (14E5239d)
10.2 (14C89)
10.1
10.0 (14A5339a)
Follow below step.
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
4) Restart Xcode
Is it very convenient, saving the trouble of updating Xcode. what? You can't find a new Device Support file! Ok, you can copy it out from your friend's latest Xcode, or download from here
Update:
The added iOS Disk image for iOS 13.0, 12.3 and iOS 12.4
Apparently, with the latest IOS update, my version of Xcode could not build due to the following error.
Could not locate device support files. This iPhone 7 Plus (Model 1661, 1784, 1785, 1786) is running iOS 11.3 (15E216), which may not be supported by this version of Xcode.
Tried to install Xcode 9.3 via this link https://developer.apple.com/download/more/. But as it turns out, my Mac OS version sees the update as an incompatible version. Running on Sierra 10.12.6
Another option is to download the 11.3 device support at:
iOS 11.3 (15E217)
And don't forget to remove "(15E217)" from folder name, so it became "11.3". Restart Xcode afterwards.
Where to paste it according to comment of EdwardM
For those that don't know where to paste the contents of the zipped file. Find your Applications icon in the dock, right-click, "Open Applications". The folder will open in Finder. Right-click Xcode > Show Package Contents. Then go to Developer > Platforms > iPhoneOS.platform > DeviceSupport
I have the same problem, OS Sierra trying to run iPhone SE with 10.3 using Xcode 9.2 and I don't have the resources to update to High Sierra and Xcode 9.3.
Solution:
Find your friends who have Xcode 9.3
Ask them to right click on Xcode, Show Package Contents then navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.3 (15E217)
Copy the 11.3 (15E217) folder to your old Xcode (9.2) with the same file hierarchy
Now you have Xcode 9.2 with iOS 11.3.
I just give you a device support file for iOS 11.4 (15F79).
which just on XCode version 9.4 (9F1027a)
Updated on 5 Oct 2018:
Xcode 10.0 (10A255) - iOS 12.0 (16A366) [Updated 21 Sep: #Nik
Burns confirmed that works]
Xcode 10.1 beta 2 (10O35n) - iOS 12.1 (16B5068g) [Please give me feedback if that works]
I have macOS 10.12.6
You can download Xcode 9.3 from https://developer.apple.com/download/
and extract the "11.3 (15E217)" folder from it
The fix really works.
please add both of "11.3 (15E216)" and "11.3 (15E217)"
keep all of them inside /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
I recently stumbled upon the same problem, where I basically updated my iPhone X to the newest OS version, and (for reasons I will not go into) had to run the app on Xcode 9.2.
This thread was helpful, but there's one small caveat that even though I downloaded the newest support files from the provided Github project, and put them in the appropriate folder, I was still getting this error:
Say for example you’ve downloaded 11.4 (15F79) but after restarting and running again you get an error mentioning something like 11.4.1 (15G77).
The solution, as I wrote here, was to just rename the folder (so, rename 11.4 (15F79) to 11.4.1 (15G77)), restart Xcode and voila, it works!
Hope this helps someone 👍
I have macOS 10.13.4
I downloaded Xcode 9.3
Here you have the "11.3 (15E217)" it's work fine.
Quicker/Smaller Fix
This is probably due to outdated Xcode, if you don't want a big Xcode update due to limited storage/time then you can manually download the required support files instead of the whole update.
Download the files (depend on iOS veersion) from here
And then paste the downloaded files in below directory /Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport