When attempting to run a build on a connected iOS device in Xcode I get the error:
Could not find Developer Disk Image
I saw that there was a public beta for Xcode, so I installed it.
One of the new features is that you don't need to have a Developer Program Account Dingus to upload your app directly to your iPhone.
However, on my iPhone 4s, I also did a public beta update to iOS 8.4, problem being, that there's no Developer Disk Image available for it.
Where do I to find it or how can it be fixed?
I am facing the same issue on Xcode 7.3 or Older version of your Xcode and my device version is iOS 10 or newer version of your OS.
This error is shown when your Xcode is old and the related device you are using is updated to latest version. First of all, download the latest Xcode Version. No Need to install the latest Xcode.
We can solve this issue by following the below steps:
Now 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.
OR
If you can't download the latest Xcode, you can get the latest Developer Disk Image for your Xcode from this link:-
How to download Xcode DMG or XIP file?
Thanks to @Hailei for their answer. So that people can download the latest DMGs.
It works, in my case for Xcode from 7.3 TO 7.1. Copy directory 9.2, for iOS device OS 9.2.1.
This problem is a mismatch of your iOS version and Xcode version.
Example:
You have an iPhone with iOS 9.3 GM and your Xcode version is 7.2.1. This leads to the issue that you have to update your Xcode to 7.3 which includes SDKs and related stuff for iOS 9.3.
I personally downloaded Xcode 6.4 beta and 7.0 beta and I was very happy to find the solution by searching "8.4" inside the application folder of the 6.4 beta. By doing this, I found the folder
8.4 (12H4125a)
containing the iOS 8.4 image and I copied this folder to the same path of the 7.0 beta. The path is the following:When you will reopen Xcode 7 and choose your device, there will be an error message; just click on
fix issue
and that should do it!This error is shown when your Xcode installation is too old and the related device you are using is updated to latest version.
There are multiple ways to solve this issues.
1. Update your Xcode installation.
This is by far the simplest method. Just update your Xcode installation to the latest stable version and things would start working again.
Note: Please update your OS as well if Xcode doesn't support your current OS. Which brings us to...
2. Manually copying Device Disk Image. No update needed.
This is the clever way around. You don't have to update your Xcode installation or your OS for this.
First open the XCode.dmg and select
Show Package Contents.
Phase 1: Getting the downloaded Xcode ready.
Steps:
Now, a new finder window opens. Follow the instructions below to copy the disk image.
Phase 2: Copying the Developer Disk Image.
Steps:
Now select the desired platform. For our purpose, we are going to update iOS disk image only.
Note: For step 6, You can copy the disk image you want to copy as well, i.e. copy the latest only. It's the last folder in the hierarchy here.
This ends the Phase 2, Copying the disk image. Now in the next phase, we will update the developer disk image of our Xcode installed on our device.
Phase 3: Upadting the Xcode's developer disk image.
Now, close all the finder windows for faster operation and less confusion.
We are now going to update our Xcode's disk image for iOS Platform.
Steps:
Finder window updates or opens a new window with Contents as the main directory.
Note: SKIP step 12 if you copied only the latest disk image i.e. the last folder in the hierarchy.
Now, Paste the developer disk image we copied from Phase 2 here.
Paste
here.If everything worked properly, your Xcode has new developer disk image. Close the finder now, and open Xcode. The error should be gone by now.
Reminder: Don't forget to unmount the Xcode now from finder as well.
My problem was with Xcode 7 and Xcode 6.4 beta and iOS 8.4 - device not compatible.
In case of the same problem for better understanding how to fix, do next:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/