Want to run your XCode app on your iPhone or iPad? You could get an error because there is no Developer Disk Image installed for your iOS version.
These instructions are all at your own risk. We are not responsible for any mistakes, damages, etc.
This error could look something like:
- iPhone is not valid for Running the scheme (sometimes restarting your iPhone / Mac could also just work)
For example, if your macOS version is stuck with Monterey, while the newest version is Ventura, you can not upgrade to the newest version of XCode (14.3), which supports iOS 16.4. This will make it unpossible for iOS 16.4 devices to run developer apps on, because the Developer Disk Image is not installed.
There are ways to download these developer disks with a third party provider, but you never know if these are secure sources.
That is why I prefer it to download it from Apple itself. How?
Download Developer Disks directly from Apple
Then select the Beta Versions Download Page. Login and select the newest version (beta is probably not even needed).
Download the xip file. Unpack it. You will probably see XCode now and a message that it is unsupported for your current macOS version. Click with your right mouse button (or other configure button) to open the context menu. Click on “Show Package Content”. Go to Contents > Developer > Platforms > iPhoneOS.platform > DeviceSupport and copy the newest iOS Developer Disk (for example 16.4). Copy it to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Sometimes it may require a small rename, like from 16.4 to 16.4.1. as a small iteration might work according to this Github repo: https://github.com/filsv/iOSDeviceSupport . Again, this is all at your own risk.
With thanks to: https://developer.apple.com/forums/thread/27509