Could not locate device support files: iOS - ios

I am using Xcode 10.0 and running in 12.1.1(16C50). It was given below error.
iOS 12.1.1 not supported by Xcode 10.0: Could not locate device
support files

Just download latest OS SDK(Available iOS 9 to iOS 14) and paste it on respective location.
Follow the below step.
Unzipped downloaded file
Right-click on Xcode and click on Show Package Content
then paste your file on path
Contents > Developer > Platforms > iPhoneOS.platforms > DeviceSupport
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 12.4, 12.3, 13.0, and iOS 14.0

Download Developer disk image for iOS 12.1 from https://github.com/xushuduo/Xcode-iOS-Developer-Disk-Image/releases
and perform following steps
Unzipped downloaded file
Right click on Xcode and click on "Show Package Content"
Then paste your file on path "Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport"
Restart Xcode
Thats It....

Please upgrade your Xcode IDE to 10.1.
Xcode 10.1 Release Notes can be found at, https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes/

Related

This iPhone 6 is running iOS 12.4.1 (16G102), which may not be supported by this version of Xcode

Getting the error
This iPhone 6 is running iOS 12.4.1 (16G102), which may not be
supported by this version of Xcode.
while trying to run the app on iPhone after updating the iPhone.
I know that I can update the Xcode and System both and the issue will be resolved but I want to be able to install the apps on iPhone without updating the Xcode and MacOS.
Please help.
Tried nothing yet.
Can not share the code. No code to show here.
Issue:
This iPhone 6 is running iOS 12.4.1 (16G102), which may not be supported by this version of Xcode.
Resolution:
a). If the issue is not replicated on your another device with latest Xcode version
We need to add the support files in the Xcode. The files can be found on a system with latest Xcode on the path -
Go to Applications.
Right click on Xcode, click on "Show Package Contents".
Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
Copy support files for the iPhone version.
Paste the file into the system in which you are facing the issue in same path as of above. Close the Xcode and run the code again to refresh the files.
b). If you don't have a system with latest Xcode.
Download the file "iOS 12.4 Developer Disk Image" from the https://github.com/xushuduo/Xcode-iOS-Developer-Disk-Image/releases and unzip the file. Rename the folder to "12.4.1 (16G102)" and paste the file into the system in which you are facing the issue in below path:
Go to Applications.
Right click on Xcode, click on "Show Package Contents".
Go to Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
Close the Xcode and run the code again to refresh the files.
You need to add device support files from this link
Follow these steps to add device support files
Go into Application and right click on Xcode.app then click on show package contents
Go into this path Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/
Get device support file 12.4 from attached link. Unzip it and rename to 12.4.1(16G102) and paste renamed file to above path under device support.
Restart Xcode and then run application on device.
Happy Coding..
I got the same problem. I tried several things but the only solution is to update your Xcode to 11.3.1. After the update I tried to run on my iPhone and worked perfectly!

Xcode Missing Support Files iOS 12.2 (16E227)

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:
And my Xcode build running on macOS Mojava v.10.14:
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?
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.
After copying and renaming the folder, if problem persists, restart the Mac.
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:
Go to about this mac -> Software Update (Operating System Updates).
After downloading and installing update you'll be able to Update Xcode.
Go to App Store -> search xcode and you could update Xcode successful.
In conclusion: I needed to install updates for my macOS Operating System.
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.
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.
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.
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.

Xcode: Could not locate device support files

As i am trying to run my application from newly updated Xcode 8 to my iPhone 4 which is running iOS 7.1.2
It throws below error,
And, this is my Xcode version,
Has anyone faced this issue before? Awaiting for your suggestions!!
Actually, there is a way. You just need to copy DeviceSupport folder for iOS 7.1 from Older Xcode to the new one. It's located in:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
If you don't have the 7.1 files anymore, you can download a previous version of XCode on https://developer.apple.com/download/more/, extract it, and then copy these files to following path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Credit
I had a similar problem because the app store version was missing iOS 10.1 support in Xcode 8 and they haven't rolled an update yet. This caused the "Xcode: Could not locate device support files" problem. You can download the latest update https://developer.apple.com/download/ and it is more current and supports iOS 10.1 (14B72c).
I have Xcode 10.1 and I can not run my application on my device with 12.2 iOS version.
The easiest solution for me was:
Go with finder at Xcode location
Right Click -> Show Package Contents
Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport
Here you find a list of supported version. Choose the most recent one and copy(In my case was 12.1 (16B91))
Paste in the same folder(DeviceSupport) and call it with the version you need.(In my case was 12.2 (16E227))
Close Xcode if you have it open
Reconnect device if it was connected
Open Xcode and build
If this trick does not working, you have to get the versions from the new Xcode version.
But you can try, saves a lot of time. Good luck!
EDIT: Or you can download your needed device support from here:
https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport
You need device support from previous version of Xcode (7.3.1).
I would recommend to use this tool: https://github.com/KrauseFx/xcode-install
When you install Xcode 7, you should link support files to Xcode 8:
sudo ln -s /Applications/Xcode-7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.* \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
This error is shown when your XCode is old and the related device you are using is updated to latest version. First of all, install the latest Xcode version.
We can solve this issue by following the below steps:-
Open Finder select Applications
Right click on Xcode 8, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
Copy the 10.0 folder (or above for later version).
Back in Finder select Applications again
Right click on Xcode 7.3, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
Paste the 10.0 folder
If everything worked properly, your XCode has a new developer disk image. Close the finder now, and quit your XCode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.
Thanks
Here is the correct way of handling support errors from Xcode. All you have to do is add support to Xcode's DeviceSupport folder.
Open this link, extract the zip and copy the folder. https://github.com/mspvirajpatel/Xcode_Developer_Disk_Images/releases/tag/12.3.1
NOTE: A new version of iOS 13.0 beta recently released. If your Xcode throws iOS 13.0 support files needed, then click the link below:
https://github.com/amritsubedi/iOS-Developer-Disk-Image/blob/master/13.0.zip
Then, go to Applications -> Xcode. Right click and open Show Package Contents. Then, paste to Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport and restart Xcode.
Note: If you have a problem with any other version of iOS, then download the right iOS Developer Disk Image and paste it in the above-mentioned folder.
This will work.
Having the same exact issue with iOS 10.3 and Xcode 8.2.1. I'm not going to download the new Xcode beta just to fix this. Come on Apple!
To anyone reading this, you have to go to https://developer.apple.com/download/ and get the latest version, which might even be the beta, if the stable release doesn't work.
In the future, I would be aware if you update iOS on your devices you may break Xcode/iOS version so update wisely if you want to keep testing on it without jumping through hoops that Apple makes.
If you have XCode 8.1 and iOS 10.2, update XCode manually to 8.2.1. For some reason App Store didn't offer this update.
In case of getting "Could not locate device support files" after your device iOS version has been updated and your Xcode is still old version, just copy old SDK under new name and restart Xcode. Open your terminal and do following:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
$ cp -rpv 10.3.1\ \(14E8301\)/ 11.2.1
Restart Xcode and it will most probably work.
Download & mount http://adcdownload.apple.com/Developer_Tools/Xcode_7.3.1/Xcode_7.3.1.dmg
I was first wandered if it could be mounted directly through hdiutil attach and looks like it could but not for everyone's accounts.
Open to see its content and copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1 to same path into Xcode application directory.
Restart Xcode
Same issue, go to App Store and update Xcode
Get latest iOS-device-support-files (GitHub) (updated regularly). Download and copy iOS-device-support-files to:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
I have Xcode 12.4 and can't run my app on my device with iOS 14.5.1
Download Device support 14.5 from here:
https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport
Then, Follow below steps:
XCode.app > Right Click > Show Package Contents > Contents >
Developer > Platforms > iPhoneOS.platform -> DeviceSupport
Paste 14.5 (unzipped) folder here.
Close Xcode if you have it open and quit Xcode.
Reconnect device if it was connected.
Open Xcode and build.
If this trick does not working, you have to get the versions from the new Xcode version.

"Could not find Developer Disk Image" run error

When I try to run an app on connected iPhone I get the error: "Could not find Developer Disk Image"
I am not registred Apple Developer right now, but you wouldn't need that in xcode 7 would you?
I Just updated xcode to version 7.2.1 and my iPhone (6 plus) is running iOS 9.3
Xcode 7.2.1 currently only supports up to iOS 9.2
9.3 is in beta, and requires Xcode 7.3, which is currently also in beta. You can download from the developer portal. You won't need to be a paid developer to do this.
The easiest way is update your OS and XCode but if you have some reason to stick with Yosemite 10.10.5 Xcode 7.2.1, You can use this copy and paste trick to make it work.
Just download Xcode 7.3.1 GM seed and here are files you need to copy and replace the old one.
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/version.plist
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.3 (13E230)
This work for me.
To run your project from your latest Xcode version to latest iOS device follow the following steps :
Go To Finder -> Applications -> Right Click on latest Xcode version -> select show package content -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport -> Copy the latest version folder and paste at the same location of your old Xcode i.e in the DeviceSupport folder of your old Xcode.
Then Restart Xcode.
As opposed to running your project on the simulator, when you run it on the device, you must make sure your version of Xcode supports the version of the beta you have (most likely, it would not).
You can easily just check your target and click on the "General" tab. Under the "Deployment Info" section, select the "Deployment Target" drop-down menu and you will see the versions your version of Xcode supports (as shown below):

"Could not find Developer Disk Image"

Recently I've been getting the error: "Could not find Developer Disk Image"
I think this happens since I have updated iOS to 9.1 on the iPhone.
How can I fix the problem and make Xcode support iOS 9.1 devices?
Xcode 7.0.1 and iOS 9.1 are incompatible. You will need to update your version of Xcode via the Mac app store.
If your iOS version is lower then the Xcode version on the other hand, you can change the deployment target for a lower version of iOS by going to the General Settings and under Deployment set your Deployment Target:
Note:
Xcode 7.1 does not include iOS 9.2 beta SDK. Upgraded to Xcode to 7.2 beta by downloading it from the Xcode website.
I am facing the same issue on Xcode 7.3 and my device version is iOS 10.
This error is shown when your Xcode is old and the related device you are using is updated to latest version. First of all, install the latest Xcode version.
We can solve this issue by following the below steps:-
Open Finder select Applications
Right click on Xcode 8, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
Copy the 10.0 folder (or above for later version).
Back in Finder select Applications again
Right click on Xcode 7.3, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device
Support"
Paste the 10.0 folder
If everything worked properly, your Xcode has a new developer disk image. Close the finder now, and quit your Xcode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.
Thanks
1) I have experienced same issue, my Xcode version was 7.0.1, and I updated my iPhone to version 9.2, then upon using Xcode, my iPhone was shown in the section of unavailable device. Just like in image below:
2) But then I somehow managed to select my iPhone by clicking at
Product -> Destination -> Unavailable Device
3) But that didn't solved my problem, and it started showing:
Could not find Developer Disk Image
Solution) Then finally I downloaded latest version of Xcode version 7.2 from here and everything has worked fine for me.
Update: Whenever version of iPhone device is higher than version of Xcode, you may experience same issue, so you should update your Xcode version to remove this error.
For the case XCode version is lower than iOS device's image, you can either copy the disk image from other already updated XCode(or maybe the internet) or upgrade your XCode.
The image is a folder with size about over 10MB, and place(find or put it) here under this path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup‌​port/".
To enter Xcode.app package, hold control key and click on Xcode.app, you will find additional option like show package content or some word similar. Choose this option and you will enter Xcode.app like entering a normal folder.
Hope it's helpful and good luck!
To run the project to latest devices from the older versions of Xcode, follow the following steps :
Go To Finder -> Applications -> Right Click on latest Xcode version -> select show package content -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport -> Copy the latest version folder and paste at the same location of your old Xcode i.e in the DeviceSupport folder of your old Xcode.
Then Restart Xcode.
Simply updated Xcode. Solved my problem
If you want to develop with Xcode 7 on your iOS10 device :
(Note: you can adapt this command to other Xcode and iOS versions)
Rename your Xcode.app to Xcode7.app and download Xcode 8 from the app store.
Run Xcode 8 once to install it.
Open the terminal and create a symbolic link from Xcode 8 Developer Disk Image 10.0 to Xcode 8 Developer Disk Image folder using this command:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\)/ /Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
Source
This solution works only if you create in Xcode 7 the directory "10.0" and you have a mistake in your sentence:
ln -s /Applications/Xcode_8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0 \(14A345\) /Applications/Xcode_7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
Older XCode version has no developer disk image for newer iOS version.
If you don't want upgrade XCode you can find
ready developer disk images for latest versions in this answer: https://stackoverflow.com/a/39865199/286361

Resources