Using Safari on macOS 13.4.1, installing Xcode 15 beta 2 is problematic.
First time it downloaded Xcode & iOS 17 and the small metadata file. When I extracted the .xip file and started Xcode for the first time, it prompted me to install iOS 17 beta, but it was downloading it again so I cancelled: I couldn't get it to 'see' the already-downloaded iOS 17 DMG file (although I did mount the DMG file at first, not sure if that makes a difference).
I eventually gave up and let it try re-downloading iOS 17. Then, it downloads the entire thing successfully, starts working on it, and then dumps out this error message:
Registering simulator runtime with CoreSimulator failed.
Domain: DVTDownloadableErrorDomain
Code: 29
User Info: {
DVTErrorCreationDateKey = "2023-06-22 03:32:23 +0000";
}
--
The service used to manage runtime disk images (simdiskimaged) crashed or is not responding
Domain: com.apple.CoreSimulator.SimError
Code: 410
--
System Information
macOS Version 13.4.1 (Build 22F82)
Xcode 15.0 (22181.22) (Build 15A5161b)
Timestamp: 2023-06-21T22:32:23-05:00
No other beta SDK would install, either. Eventually I went into Xcode Settings and under the Locations tab I changed Command Line Tools to Xcode 15 beta, and under the Platforms tab I deleted the first Xcode 15 beta's iOS 17 & watchOS 17 Simulators.
Then I was running out of disk space because the failed downloads don't get deleted (where are they?) until you reboot your Mac. So I rebooted my Mac and went through these steps again.
I managed to get watchOS 10 and tvOS 17 to download, but not iOS 17 or visionOS 1.0. Thanks
EDIT:
Perhaps I should mention that the Platforms tab of Xcode 15 beta 2 shows the last non-beta Simulator versions of OSes that Xcode 14.x is using (tvOS 16.4, watchOS 9.4), but doesn't show iOS 16.4 (but maybe because it's built in to Xcode 14?). Is that a clue?
What I think worked:
Followed JoryDeKort's list of 11 steps, above.
I noticed in Activity Monitor that there was still a process with "simulator" in the name, so I thought "let's shut the whole thing down and try again after a fresh reboot".
So I rebooted, then (without opening Xcode), ran "update_dyld_sim_shared_cache" again, got the warning, hit Show In Finder.
Then I opened Xcode 15 beta 2, got the warning again, hit Cancel, and continued getting a series of prompts and I just kept slamming the Cancel button ... and ... voilà, eventually Xcode stopped showing the dialog prompt, the SBOD (spinning beachball of death/mouse activity indicator) spun around for many seconds as I held my breath (I'm sure that was an important step!) and then ... Xcode just opened my project!
I looked in Xcode Settings->Platforms and iOS 17 beta no longer had a Get button, and looked installed.
I changed the Run Destination in Xcode to iPhone 14 Pro (previously, of course, no iOS 17 destinations showed up there, so I was very hopeful), I hit Run, and my app magically appeared in an iOS 17 simulator!!
Hurray! Thank you Jory!