Do I still need "iOS 17.0" support, now that my device is running 17.1.2?

I have been trying to tidy up my Mac's storage which is getting full. (See also my other question about "bridgeOS".)

In Settings -> General -> Storage -> Developer there were numerous multi-gigabyte items for different versions of iOS. Most of them were for point releases that I no longer have on my devices, which auto-update. For example I think I had 17.0, 17.1.1 and 17.1.2; my dev iPad and iPhone are both now running 17.1.2, so I deleted the others.

But now when I try to run, XCode complains that "iOS 17.0 is not installed".

Does this mean that iOS 17.0 device support is required in addition to iOS 17.1.2, in order to run on a 17.1.2 device?

This would make sense if it just said "iOS 17", rather than "iOS 17.0".

Frustrating!

I attempt to run on an iPad with iOS 17.1.2, but I can't because I see this in the run destinations menu:

Note "iOS 17.0 Not Installed".

In Xcode -> Settings -> Platforms I have:

Note this claims that I have "iOS 17.0 simulator" but not "iOS 17.0".

I attempted to download "iOS 17 Simulator Runtime" from https://developer.apple.com/download/all/ and install it following the instructions at https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes:

% xcrun simctl runtime add Downloads/iOS_17_Simulator_Runtime.dmg 
D: B9B832F1-6DE0-4A73-8756-1CB9BB19C25A iOS (17.0 - 21A328) (Unusable - Other Failure: Error Domain=SimDiskImageErrorDomain Code=5 "Duplicate of 7A4EF297-D25A-425A-8DF5-0E977B76C201" UserInfo={NSLocalizedDescription=Duplicate of 7A4EF297-D25A-425A-8DF5-0E977B76C201, unusableErrorDetail=})

Hence the red item in the Platforms window.

It is suspicious that the "iOS 17.0" and "iOS 17.0 Simulator" are apparently both 7.56 GB, yet there are not the same thing.

(Edited to add: right click and "copy version information" reveals that indeed "iOS 17.0" is SDK + Simulator while "iOS 17.0 Simulator" is only Simulator, despite apparently being the same size.)

I guess that if I click GET in the Platforms window it will download the right thing, but I would much prefer to download a .dmg which I can then copy to my other Mac; I have a slow internet connection. In fact I did click GET earlier and cancelled it, and BOTH the "iOS 17.0" and "iOS 17.0 Simulator" rows in the Platforms window showed download spinners, as if they are actually the same thing.

I only got in this mess because I was attempting to delete support for old point releases that I don't need anymore, and thought that 17.0 was one of them.

Suggestions anyone?

I still can't get this to work.

I clicked on the "GET" button in the Platforms screen's "iOS 17" row, as shown in the second screenshot above, and it downloaded 7.56 GB again... and still shows that row greyed out.

Then I clicked on the "GET" button in the run destinations popup (visible in the first screenshot above), and it immediately displayed the small "downloads" window with that download completed:

...but the popup still shows "iOS 17.0 Not Installed".

This is starting to look like an Xcode bug - I've deleted something that I cannot recover from.

Will I have to re-install Xcode? I should mention that this is Xcode 15.0; maybe this was fixed in 15.0.1 or 15.1?

Short story: it will work after reboot.

It's funny I hit the same issue last week, but for a different reason. I noticed in Disk Utility, that a couple of iOS 17 disk images are mounted. So I decided to tidy-up and unmount them. The following day Xcode had no iOS support. So I installed that and it still didn't work. Restarting Xcode did not help. A reboot solved it. I would say this is a bug and poor design in Xcode. If it needs these images to be mounted, then it should mount them and not ask to download again. The T2 chip on Intel Macs runs Bridge OS.

I'm not sure which components are required, but if you clean more than what you need, you should be able to let Xcode download what it needs and reboot. Then try to copy them from here /Library/Developer/CoreSimulator/Images/. I'm not sure if it will work. In your case the Internet speed is a factor, so do cleanup and reinstalls it overnight. It took about 10 minutes and 8 GB of my unlimited LTE data.

hdiutil info |grep image-path
image-path      : /Library/Developer/CoreSimulator/Images/C1DB187D-7E6B-44D7-9ECD-A1A2BE8257B3.dmg

Good luck!

it will work after reboot.

That's an interesting suggestion - thanks for posting. I'll try and remember if I ever get in the mess again.

Eventually I gave up and re-installed Xcode, and clicked on the "GET" button to install the SDK + simulator. Just another 3 hours of downloading.

Once that was working I tried to do the same thing on my other Mac - and it worked in 10 minutes!!!! It seems that, by some magic, the second Mac copied the files over the local network from the first!!! Now if I had known that that were going to happen, I wouldn't have ever tried to download disk images and I would have just used the "GET" buttons from the beginning.

Do I still need "iOS 17.0" support, now that my device is running 17.1.2?
 
 
Q