I just upgraded my Macbook & Xcode installation, as we are required to target the latest iOS SDK later this month.
I am now unable to compile our app as the iOS runtime is not installed by default. I have tried to download the missing runtime by clicking on "iOS 17.4 Not Installed - Get" in the top title bar. I think that the initial download may have been interrupted. Now, when I click "Get", I get a popup that suggests that I can't download the Runtime because the iOS Simulator is already installed.
I'm guessing that Xcode is holding a reference to a non-existent installation somewhere, but I can't figure out how to get rid of it.
I have tried completely uninstalling Xcode, and deleting /Library/Developer from both my personal directory and the system directory. I can't delete the iOS Simulator installation reference from Xcode directly either. When I try to, I get this error message:
Unable to remove SimulatorRuntime
Domain: com.apple.DVTFoundation
Code: -1
User Info: {
DVTErrorCreationDateKey = "2024-04-13 14:18:22 +0000";
}
--
Unable to remove SimulatorRuntime
Domain: com.apple.DVTFoundation
Code: -1
--
Cannot stage disk image or bundle for delete: 87947E69-C049-4950-B663-C40C3BCAAFB2
Domain: com.apple.CoreSimulator.simdiskimaged.SimDiskImageError
Code: 18
--
The file “87947E69-C049-4950-B663-C40C3BCAAFB2.dmg” doesn’t exist.
Domain: NSCocoaErrorDomain
Code: 4
Failure Reason: The file doesn’t exist.
--
The operation couldn’t be completed. No such file or directory
Domain: NSPOSIXErrorDomain
Code: 2
Failure Reason: No such file or directory
--
System Information
macOS Version 14.4.1 (Build 23E224)
Xcode 15.3 (22618) (Build 15E204a)
Timestamp: 2024-04-13T16:18:22+02:00