Fix “Could not locate device support files” in Xcode

Your iPhone runs a newer iOS than your Xcode knows. Which Xcode your iPhone needs, which macOS that Xcode needs, and what to do if your Mac is too old.

By Sigsten Gustavii· · 9 min read

Build your own running log with Borel

Build this app

You connect your iPhone, press Run, and Xcode answers: "Could not locate device support files. You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com." The words are vague about the cause, but the cause is almost always the same: your iPhone is newer than your Xcode.

This guide explains what device support is, how to find the Xcode your iPhone needs in Apple's own table, the macOS that Xcode needs in turn, what to do when your Mac cannot go that far, and why the old trick of copying folders between Xcodes no longer works.

What the message means

Xcode does not only build your app. To put it on a phone and debug it there, it needs to know that phone's version of iOS. Apple's SDK and system requirements table has a column for exactly this, called Device Support, which Apple defines as the OS range supported by this version of Xcode for installing and debugging applications on device.

When your iPhone's iOS falls outside that range, Xcode cannot find what it needs and says so in those words. In the report quoted above, from Apple's Developer Forums in March 2025, the person ran Xcode 14.3.1 on macOS Ventura with an iPhone on iOS 18.3.2. Apple's table lists device support for Xcode 14.3.1 as iOS 11 to 16.4, so the phone was two years ahead of the tool.

The parts of the message, and what each one tells you
The wordsWhat they mean
Could not locate device support filesThis Xcode has no support for the iPhone's version of iOS
You may be able to resolve the issue by installing the latest version of XcodeThe fix Apple suggests: a newer Xcode, which knows newer iPhones
from the Mac App Store or developer.apple.comWhere to get it; both are Apple's own downloads

Step 1: find your two version numbers

  • The iPhone's iOS: open Settings, General, About, and read iOS Version.
  • Your Xcode: in Xcode, choose Xcode, About Xcode from the menu bar.
  • Your Mac's macOS: choose the Apple menu, About This Mac.

With those three numbers, Apple's table tells you everything. Here are a few of its rows as they stood on 20 November 2026:

Xcode versions, the macOS each installs on, and the iOS each supports on a device, from Apple's table
XcodeInstalls onInstalls and debugs on
27.2macOS Tahoe 26.6 or lateriOS 17 or later
26.3macOS Sequoia 15.6 to Tahoe 26iOS 15 or later
16.4macOS Sequoia 15.3 to Tahoe 26.1iOS 15 or later
15.4macOS Sonoma 14iOS 12 or later
15.2macOS Ventura 13.5 to Sonoma 14iOS 12 or later
14.3.1macOS Ventura 13iOS 11 to 16.4

Two things stand out. Up to Xcode 14, each version stopped at a particular iOS, so every iOS update could break it. From Xcode 15 the column says "or later", and the reason is in the next section. And at the top, Xcode 27 starts at iOS 17: a phone that cannot update past iOS 16 is not on its list.

Step 2: update Xcode

If your iPhone is newer than your Xcode, install a newer Xcode. It comes from the Mac App Store, or as a download from developer.apple.com, as the message says. Then:

  1. Open the new Xcode and let it install its components when it asks.
  2. Connect the iPhone with a cable, unlock it and tap Trust if it asks.
  3. Choose the iPhone in the run destination menu. If it is not there, choose Manage Devices and pair it.
  4. Press Run.

If Xcode is already the newest and the iPhone is newer still, which happens just after Apple ships a new iOS or a new iPhone model, Apple documents one more step. Its page on Xcode components describes downloading hardware support in between Xcode releases from Terminal:

Apple's commands for new hardware support between Xcode releases
xcode-select -s /Applications/Xcode.app
xcodebuild -runFirstLaunch -checkForNewerComponents

Apple says that if new components exist, this command stores them and installs them for the Xcode you selected. If nothing new exists, the next Xcode update is the fix.

Why "or later" since Xcode 15

Before iOS 17, Xcode kept a folder of support files for each iOS version, and people who could not update Xcode used to copy those folders in from a newer one. In June 2023 Apple's staff on the Developer Forums answered that directly: copying files from a newer version of Xcode to an older one, for any purpose, was never supported.

Apple's Developer Tools engineer explained what changed. From iOS 17, Xcode talks to devices through a new device stack called CoreDevice, with one developer disk image per platform instead of one per iOS release. That stack is shared by every Xcode on the Mac, and installing a newer Xcode updates it. So Xcode 15 and later can work with newer iOS versions, but, in the engineer's words, that may require installing a newer Xcode beforehand, to bring the device stack up to date.

New iPhone models are the clearest case. In September 2024 an Apple engineer told people with an iPhone 16 and Xcode 15 that it is expected that Xcode 15 does not support iPhone 16, and to update to Xcode 16. The "or later" in the table is about iOS versions, not about hardware that did not exist when the Xcode shipped. If the message you see is about mounting a disk image rather than finding support files, read the developer disk image could not be mounted.

If your Mac cannot run the Xcode you need

This is the hard case, and Apple's table is blunt about it: each Xcode installs on a range of macOS versions. Xcode 27 needs macOS Tahoe 26.6 or later. If your Mac cannot update that far, it cannot run Xcode 27, and an iPhone that needs Xcode 27 cannot be used with Xcode on that Mac. The options are honest ones:

  • Update macOS, if the Mac can. Choose the Apple menu, System Settings, General, Software Update.
  • Use an older Xcode for an older iPhone. A phone stuck on iOS 15 or 16 is outside Xcode 27's list but inside Xcode 26's. Apple's components page shows how to choose between Xcode copies on one Mac with xcode-select.
  • Use a newer Mac. Our guide to the cheapest Mac for iOS development goes through what to look for.
  • Build somewhere else. If what you want is the app on your phone rather than Xcode itself, the building does not have to happen on your Mac. That is the last section.

Is it this message, or a neighbour?

Device messages in Xcode that point at versions, checked 20 November 2026
What Xcode saysWhat it usually meansWhere the fix is
Could not locate device support filesXcode is older than the iPhone's iOSThis page: update Xcode
The developer disk image could not be mountedXcode could not set up the phone for debuggingThe disk image fixes
iPhone is busy: PreparingXcode is still setting the phone up, or is stuck doing itWhy it waits
iPhone is not available. Please reconnect the deviceXcode lost the phone, sometimes because of versionsReconnect it properly

How to keep it from coming back

  • Update Xcode soon after you update the iPhone, or hold off on the iPhone update until Xcode has caught up.
  • Keep macOS current on a Mac you develop on, since each Xcode needs a recent macOS.
  • Check Apple's table before you buy a used Mac for development. The macOS it can run decides the newest Xcode, and the newest Xcode decides which iPhones you can use.

Where Borel fits

Everything on this page is a race between three version numbers on your desk: the iPhone's, Xcode's and the Mac's. Borel takes two of them off your desk.

Borel builds the app from your description, in Swift with SwiftUI, with Xcode on its own Mac rather than yours; you try it in an iPhone simulator in your browser. To put it on your own iPhone, Borel Companion signs it with your Apple ID and installs it. Companion runs on a Windows 10 or 11 PC, with no Apple software needed, or on a Mac with macOS 11 Big Sur or later. Installing with Companion comes with a paid plan, Pro, from $25 a month.

Companion installs the app; it does not debug it, so it needs no device support files from Xcode. On a Windows PC no Xcode is involved at all. On a Mac, Companion reaches the iPhone through macOS's own device support, so a Mac that is far behind the iPhone's iOS still matters there, and Companion says so before it starts, in one sentence: "Your Mac needs an update before it can put apps on this iPhone."

A free Apple ID works: it keeps 3 of your apps at a time, and Companion signs each one again every 7 days while it runs. The cable is needed once, for Trust and Developer Mode; later versions go over Wi-Fi. When the app is ready for other people, Borel can also publish the same app to the App Store with Pro and Apple's Developer Program. See how it works, or personal apps for ideas for your own phone.

A message that describes an app, with no version numbers to match
Make an iPhone app just for me to log my runs: distance, time and how it felt, a weekly total, and a simple chart of the last month. Keep everything on the phone, no account.

The bottom line

"Could not locate device support files" means your Xcode is older than your iPhone's iOS. Read the three versions, iPhone, Xcode and macOS, and look them up in Apple's table. Update Xcode, and run Apple's component check if the iPhone is newer than the newest Xcode. If your Mac cannot run the Xcode you need, update macOS, use an older Xcode for an older phone, or build somewhere else; do not copy support files in.

For the full route from Xcode to your Home Screen, see how to run your Xcode app on your own iPhone.

Questions people ask

What does "Could not locate device support files" mean?

Your copy of Xcode does not support the version of iOS on your iPhone, so it cannot install or debug apps on it. A newer Xcode usually fixes it.

Which Xcode do I need for my iPhone?

Look up your iPhone's iOS in Apple's SDK and system requirements table, in the Device Support column. On 20 November 2026, Xcode 27.2 listed iOS 17 or later and Xcode 26.3 listed iOS 15 or later.

Can I copy device support files from a newer Xcode?

No. Apple's staff said copying files from a newer Xcode into an older one was never supported, and since iOS 17 Xcode uses a different device stack that the old folders do not cover.

My Mac cannot update to the macOS the new Xcode needs. What now?

That Mac cannot run that Xcode, so it cannot use an iPhone that needs it. Update macOS if the Mac allows it, use an older Xcode for an older iPhone, or build on another computer.

Can I use Xcode 27 with an iPhone on iOS 16?

Apple's table lists device support for Xcode 27 as iOS 17 or later. For an iPhone on iOS 15 or 16, it lists Xcode 26 versions as supporting iOS 15 or later.

Does Borel Companion need device support files?

No. Companion installs your app without debugging it, and on Windows it uses no Apple software. On a Mac it still relies on macOS knowing the iPhone, and says so if the Mac needs an update.

I think this is the one Xcode error where the honest fix is a download, not a trick.

– Sigsten

Build your own running log

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

An app just for me to log my runs: distance, time and how it felt, a weekly total, and a chart of the last month, all saved on my phone.
Build this app

Keep reading