How to fix Xcode error: Could not locate device support files on iPhone with Xcode
Asked Answered
P

8

50

I have this error for the new iPhone X:
Error: Could not locate device support files

Could not locate device support files.

This iPhone X (Model A1865, A1901, A1902, A1903) is running iOS 11.1 (15B93), which may not be supported by this version of Xcode.

I'm running the latest version of Xcode (Beta 9.2 9C32c) which doesn't support the iPhone X (iOS 11.1). The problem is it's a brand new iPhone, and there are no older Configuration Files to do the switch talked in most of the solved posts.

Are there any other solution to this issue since downloading the latest version of Xcode is already what I'm running, and finding the Configuration Files to do the switch seems unlikely right now? Does anyone have those Configuration Files or know how to edit them to trick Xcode?

Penton answered 5/11, 2017 at 7:23 Comment(8)
Update xcode to latest versionAvraham
Please read the question entirely before commenting, it's already the latest version.Penton
i think this link may help you to download missed configuration files #42262287, thought this question is for apple-watch, this one actually downloads files that are missed to install during xcode installation, hope it helpsFerrand
I had the same issue with my iPhone 8, Xcode Beta 9.2 did not support my version of iOS 11.1. However Xcode 9.1 does support my version of iOS 11.1. Have you tried Xcode 9.1 ?Chivalric
@Ferrand I tried the referenced post but it didn't work.Penton
@ChrisHerbst I will download Xcode 9.1 and report back when it's donePenton
@ChrisHerbst Wow, your answer worked. Can't believe the latest version doesn't (I always have at least 2 versions installed and it's getting kind of ridiculous at this point). Feel free to post your comment as an answer and I'll gladly accept it. Thanks again!Penton
@Penton Pleasure. Have posted answerChivalric
C
18

I had the same issue with my iPhone 8, Xcode Beta 9.2 did not support my version of iOS 11.1.

However Xcode 9.1 does support my version of iOS 11.1

Chivalric answered 6/11, 2017 at 6:2 Comment(9)
Can you send me that device support file (Signature) for ios 11.1Blear
@Mind_Sparkles can you please indicate how I can generate that files for you?Chivalric
If you have installed xcode 9.1 then you can go to the path - zip that folder and upload in some drive and share link here. Path is - /Applications/Xcode 9.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.1Blear
I want folder 11.1 , If you can share please share it, Thanks in advance.Blear
Can you please generate that file for me?Blear
@Mind_Sparkles sorry for the wait, I have compressed and busy uploading to gdrive now (internet not very fast). Will post link once doneChivalric
@Mind_Sparkles here you go: drive.google.com/file/d/13aiB1FrxwKO4n4bGl67-Ols8q9htFjic/…Chivalric
Hey @Chris Herbst Can you please keep uploading all latest simulators here? just update the links with you answer here.Blear
11.2 files please.Miquelmiquela
J
88

Answer: Xcode: Could not locate device support files

Well, I found non of the answers logged out here aren't complete and sustainable. So here we go.

Most importantly don't waste your time and internet bandwidth downloading Xcode just to resolve this issue which you can do within few MBs and little bit of OS know-how!!!

Step 1:
Following GitHub Repository seems to be up to date with all the required Support Files which are helpful to resolve. And it seems like this repository gets updated quicker as possible. Check out it for yourself and you are halfway done.

https://github.com/filsv/iPhoneOSDeviceSupport

Step 2:
Select and download the Support files which are missing for your Xcode, which you can get the clue out of the above alert message. In my case I was informed to download 11.4 (15FCA...something). So I went and downloaded the latest iOS Support files:

Which were under the path of iPhoneOSDeviceSupport/11.4 (15F5061c)/

DeveloperDiskImage.dmg
DeveloperDiskImage.dmg.signature

Files within the Repository for 11.4 latest version

Step 3:
And then place them inside the DeviceSupport folder which is in a related path to your Xcode installation. In my case, I've installed Xcode 9.2 so my path to DeviceSupport looks like as follows:

/Applications/Xcode-9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Step 4
Place the two files you downloaded in a folder named 11.4 (15F5061c).
Clue: In your case make sure to name it after the specific iOS version you downloaded the files.

Step 5:
Quit Xcode app if you had been already using it previously. Re-open it and try to run your app on your iPhone (or in iDevice of your previous attempt). Xcode will first warn you saying something like following:

Preparing debugger support for Randika's iPhone 6s

Preparing debugger support for Randika's iPhone 6s in Xcode

Soon after it's completed (probably after several attempts that you may have to try reconnecting your iPhone to Xcode), you would be able to successfully run your app on your preferred device.

How could you find this path? Go to your Applications folder, locate Xcode-x.x.app file, right click on the Xcode app and select "Show package contents" as follows:

Where to find the DeviceSupport

And then navigate to the DeviceSupport folder within the Finder App as follows:

Navigate the folder tree

Hope this would be helpful to any of you!

Cheers!

Jaws answered 24/6, 2018 at 8:45 Comment(5)
10 thumbs up! Updating Xcode didn't work for my iPod Touch 6th gen w/iOS 11.4, but this method did.Cowbane
Great Answer, support's files for ios 12 in xcode 8.2.1 alsoLimacine
Yes, it still works! I'm happy I have documented this which is helpful for me also. Tested for Xcode Version 10.0 (10A255) and added support for iOS 12.1 ---> WorksJaws
My greatest respect! It still works and you have documented it in an easily understandable way.Corson
Thanks! I just used this to add iOS 13.4 support to Xcode 11.2. (I would otherwise have had to upgrade to Catalina to use the latest Xcode. Putting that off as long as possible.)Node
C
18

I had the same issue with my iPhone 8, Xcode Beta 9.2 did not support my version of iOS 11.1.

However Xcode 9.1 does support my version of iOS 11.1

Chivalric answered 6/11, 2017 at 6:2 Comment(9)
Can you send me that device support file (Signature) for ios 11.1Blear
@Mind_Sparkles can you please indicate how I can generate that files for you?Chivalric
If you have installed xcode 9.1 then you can go to the path - zip that folder and upload in some drive and share link here. Path is - /Applications/Xcode 9.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.1Blear
I want folder 11.1 , If you can share please share it, Thanks in advance.Blear
Can you please generate that file for me?Blear
@Mind_Sparkles sorry for the wait, I have compressed and busy uploading to gdrive now (internet not very fast). Will post link once doneChivalric
@Mind_Sparkles here you go: drive.google.com/file/d/13aiB1FrxwKO4n4bGl67-Ols8q9htFjic/…Chivalric
Hey @Chris Herbst Can you please keep uploading all latest simulators here? just update the links with you answer here.Blear
11.2 files please.Miquelmiquela
B
16

This error can be fixed with 2 ways.

1.You need to keep updated with latest Xcode versions.

2.You can fix it without updating to latest Xcode, in this you just need to update device support file,

To update device support file just follow the steps,

You can find the Device support file and update it with the below path details,

Path-

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/

You can download device support file from this links

Blear answered 12/12, 2017 at 5:15 Comment(2)
how do you even go to that path? It's giving me 'No such file or directory' in console.Zins
ok let me update path, you can try this one - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/Blear
F
10

You can download all iOS-DeviceSupport

iOS 13.0

iOS 12.3

iOS 12.2

iOS 12.1

How to add a file in xCode

  • Open Finder
  • Open the application folder
  • Find the Xcode app inside
  • Click on Xcode, right click -> show package contents
  • Find the supported real machine test files in the following directory hierarchy:

    Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport)

The above directory is the real version of iOS that Xcode supports real machine debugging, as shown below: Then copy the latest DeviceSupport file to this directory through other channels and restart XCode to debug with the latest iOS device.

enter image description here

Flyspeck answered 28/9, 2019 at 9:15 Comment(1)
I did this and it worked, thank you. But my question is, why should we even need to do this? I've been developing with Xcode for nearly ten years, and I have never had to do this before now. What has changed?Caldarium
W
1

I'm uncomfortable downloading shards from 3rd parties; also, it sounds like the iOS 13.2 support file linked above is based on a beta, which now crashes.

I would recommend downloading Xcode directly from Apple, and install the new version side-by-side with the version of Xcode which you need to use (if you're pinned by a Swift binary framework, for example).

  1. rename your current Xcode application bundle (Xcode --> Xcode_11)
  2. download latest Xcode from AppStore (Xcode 11.2)
  3. launch new Xcode, installing Command Line Tools, then exit
  4. launch your older Xcode (Xcode_11), and build and run on device
Weathered answered 31/10, 2019 at 21:31 Comment(0)
R
0

In my case, device support files were already present but I was still facing the issue. The reason was that folder present at this path

/Applications/Xcode-9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport was having name 12.1 (16B91) but the xcode was giving error for 12.1 (16C101) so renaming the folder to 12.1 (16C101) did the trick

Radom answered 3/6, 2019 at 7:38 Comment(0)
A
-1

I was able to run it, by first using BuddyBuild.com to send me a tester app through email, that I downloaded successfully. After that, I was able to build the app.

Adaptation answered 15/11, 2017 at 1:38 Comment(0)
W
-1
  • Open Xcode show package content
  • go to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and drop the 13.0 folder into this folder and restart the Xcode.

Download the file here: https://bitbucket.org/bneves/ios13_devicesupport_xcode_10.3/

Wartime answered 23/9, 2019 at 18:51 Comment(1)
This is for the ios13 version.Wartime

© 2022 - 2024 — McMap. All rights reserved.