问题
I have updated my iOS device to iOS 10, now Xcode says "Could not find Developer Disk Image" while trying to run on iPhone using Xcode 7.3.1 How can I fix the problem and make Xcode support iOS 10 devices?
回答1:
If you want to develop with Xcode 7 on your iOS10 device :
- 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
Note : This works for Xcode 9 and above
Source
UPDATE 2018:
If you want to use Xcode 9 with iOS 12:
- Download Xcode 10 (still in beta right now)
- Put it in the Application folder as Xcode-beta.app
- Open the terminal and use the command below:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ (16A5354b)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0
回答2:
As holex says installing Xcode 8 solves the problem
回答3:
You may try downloading a Developer Disk Image for the required iOS version, as of your mobile device; If you only want a quick and simple solution..
You need to goto:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
and paste the Developer Disk Image you just manually downloaded.
来源:https://stackoverflow.com/questions/39576363/could-not-find-developer-disk-image-ios-10