ChatGPT解决这个技术问题 Extra ChatGPT

"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?

Which version of Xcode do you have? You will need version 7.1 to work with iOS 9.1
@Paulw11 using 7.0.1
Then You need to upgrade from the Mac App Store
This question is being discussed on Meta, which is the cause of the string of downvotes you've received over the last 24 hours. Don't let them bother you.
Calebs answer is correct

C
Caleb Kleveter

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:

https://i.stack.imgur.com/HSiIL.png

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.


Ran into this again, had to upgrade Xcode to Version 7.1.1 (7B1005).
I have iOS 9.2 and Xcode 7.1.1 and i am getting this "Couldn't find disk image" error. Everything is updated to latest versions
@mladen5. Take a look at this thread: stackoverflow.com/questions/33885080/….
in my case, device ios 9.2, xcode 7.1 and mac yosemite. xcode 7.2 would hang on install. i updated to mac elcaptain and on reboot xcode 7.2 auto setup. this cleared error “Could not find Developer Disk Image”. thank you @CalebKleveter whose link provides this solution.
My scenario is exactly like @tmr I am very much new to iOS development. Why can't iOS app with target version with lower version can be deployed on iPhone with higher version iOS app
M
Mandeep Singh

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


Ma pleasure, and if your answer has been solved. Please vote me. @AlankarMisra
I also had to restart xcode. nervertheless, an ideal solution as opposed to naively updating xcode.
A
Aamir

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:

https://i.stack.imgur.com/8Tw6k.png

2) But then I somehow managed to select my iPhone by clicking at Product -> Destination -> Unavailable Device

https://i.stack.imgur.com/etVSg.png

3) But that didn't solved my problem, and it started showing:

Could not find Developer Disk Image

https://i.stack.imgur.com/UVsdz.png

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.


S
Solomon

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!


S
Swati Gupta

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.

https://i.stack.imgur.com/N7xrK.png


C
Caleb Kleveter

Simply updated Xcode. Solved my problem


C
Caleb Kleveter

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


C
Caleb Kleveter

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

V
Vladimir

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