Xcode
Developer Disk Image
iOS Development
Programming Errors
Software Troubleshooting

Xcode: Could not find Developer Disk Image for this device

Codemia Knowledge Hub ·

"Could not find Developer Disk Image" means your Xcode does not include the disk image it needs to mount on the connected device. Almost always the device runs a newer OS than your Xcode supports, so the fix is to update Xcode (or make sure xcode-select points at the newest one you have installed), copy the missing image from a newer Xcode, or move the device back to an OS your Xcode supports.

What a Developer Disk Image is

Each Xcode release bundles Developer Disk Images (DDIs), one per supported OS version. When you connect an iPhone, iPad, Apple Watch or Apple TV and hit Run, Xcode mounts the matching DDI on the device. It provides the debugserver binary, developer tools and symbol files that make breakpoints, Instruments profiling and console logging work.

The images live inside the Xcode application bundle:

bash
# List the iOS DDIs bundled with your Xcode
ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

Each folder is named after an OS version. If no folder matches your device's OS, Xcode throws the error.

Why the error happens

1. The device OS is newer than Xcode

This is the most common case. You update the device to the latest iOS beta or release, but your Xcode is a version or two behind and has no DDI folder for that OS.

2. The Xcode installation is incomplete or corrupt

A partial download, a move between volumes, or a disk error during extraction can leave DDI folders missing even for supported versions.

3. The wrong Xcode is selected

If you keep several Xcode versions (stable plus beta), xcode-select may point at the older one:

bash
1# Check which Xcode is active
2xcode-select -p
3
4# Switch to the correct Xcode
5sudo xcode-select -s /Applications/Xcode-16.app/Contents/Developer

Switching requires sudo; without root privileges the command fails and the old Xcode stays active.

How to fix it

Update Xcode (preferred)

The cleanest fix is an Xcode version that ships the DDI your device needs:

bash
1# Check your current Xcode version
2xcodebuild -version
3
4# Open the Mac App Store to the Xcode page
5open macappstore://apps.apple.com/app/xcode/id497799835

For betas or older releases that are not on the App Store, download from developer.apple.com/download.

Copy a DDI from another Xcode (quick fix)

If updating is not practical right now, copy the missing DDI from a newer Xcode installation or a colleague's machine:

bash
1# Example: copy the iOS 16.4 DDI from Xcode-beta into your stable Xcode
2SOURCE="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.4"
3DEST="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.4"
4
5sudo cp -R "$SOURCE" "$DEST"

Community-maintained GitHub repositories also host DDI archives, but files from unofficial sources can be outdated, incomplete or tampered with, so prefer a known Xcode installation or Apple's downloads. Whichever source you use, restart Xcode afterwards: it reads the DeviceSupport directory at launch and will not see a DDI added while it is open.

Downgrade the device OS

If you installed an iOS beta by accident and need to keep your current Xcode, restore the device to the latest stable iOS through Finder (macOS Catalina and later) or iTunes.

Reinstall Xcode

A corrupted install needs a clean reinstall:

bash
1# Remove the existing Xcode
2sudo rm -rf /Applications/Xcode.app
3
4# Clear derived data and caches
5rm -rf ~/Library/Developer/Xcode/DerivedData
6rm -rf ~/Library/Caches/com.apple.dt.Xcode
7
8# Reinstall from the App Store or developer.apple.com

Xcode 15, iOS 17 and CoreDevice

Starting with Xcode 15 and iOS 17, Apple moved device connectivity to the CoreDevice framework, and devices on iOS 17 or later no longer rely on the per-version DDI folders described above. Seeing "Could not find Developer Disk Image" with an iOS 17+ device typically means you are running Xcode 14 or earlier against a device that requires Xcode 15+.

Device OS versionRequired XcodePer-version DDI?
iOS 16.x or earlierXcode 14.x (matching minor)Yes
iOS 17.0+Xcode 15.0+No (CoreDevice)
watchOS 10+Xcode 15.0+No (CoreDevice)
tvOS 17+Xcode 15.0+No (CoreDevice)

Verifying the fix

bash
1# List connected devices and their OS versions
2xcrun xctrace list devices
3
4# Verify Xcode can pair with the device
5xcrun devicectl list devices

Then open the project, select the physical device as the run destination, and build.

If the error persists

The device does not trust the Mac. Even with the correct DDI, a device that has not trusted the host fails during the mount step. Unlock it, tap Trust, and try again.

You are targeting a simulator. Simulators never need DDIs, so confirm the run destination is a physical device.


Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms