Search code examples
ios-simulatorxcode15

Run Target as Simulator is missing on the Xcode15


Can not select Run Destination on Xcode 15.1/15.2 for Simulators

I have been using Xcode15.1 and recently updated to Xcode15.2. For a few days, I have been switching back and forth from both versions as needed for different projects.

Now, after restarting today, I'm unable to choose any simulator for target. There is enough disk-space, and tried downloading new version of simulator as well. Restarted the MacBook a couple of times.

Any suggestions?

Xcode-run-target-simulator-missing

Upon tapping Unable to update Index Failed to retrieve available downloads for this version of Xcode. error shows up.

Unable to update Index

Details:

Failed to retrieve available downloads for this version of Xcode.
Domain: DVTDownloadableErrorDomain
Code: -1
User Info: {
    DVTErrorCreationDateKey = "2024-01-30 21:39:41 +0000";
}
--
Unable to deserialize downloadables index request data.
Domain: DVTDownloadableErrorDomain
Code: 6
User Info: {
    URL = "https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex";
}
--
The data couldn’t be read because it isn’t in the correct format.
Domain: NSCocoaErrorDomain
Code: 3840
Failure Reason: The data is not in the correct format.
User Info: {
    NSDebugDescription = "Cannot parse a NULL or zero-length data";
}
--


System Information

macOS Version 14.2.1 (Build 23C71)
Xcode 15.2 (22503) (Build 15C500b)
Timestamp: 2024-01-30T13:39:41-08:00

Can not select Run Destination on Xcode 15.1/15.2 for Simulators

I have been using Xcode15.1 and recently updated to Xcode15.2. For a few days, I have been switching back and forth from both versions as needed for different projects.

Now, after restarting today, I'm unable to choose any simulator for target. There is enough disk-space, and tried downloading new version of simulator as well. Restarted the MacBook a couple of times.

Any suggestions?

Xcode-run-target-simulator-missing

Upon tapping Unable to update Index Failed to retrieve available downloads for this version of Xcode. error shows up.

Unable to update Index

Details:

Failed to retrieve available downloads for this version of Xcode.
Domain: DVTDownloadableErrorDomain
Code: -1
User Info: {
    DVTErrorCreationDateKey = "2024-01-30 21:39:41 +0000";
}
--
Unable to deserialize downloadables index request data.
Domain: DVTDownloadableErrorDomain
Code: 6
User Info: {
    URL = "https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex";
}
--
The data couldn’t be read because it isn’t in the correct format.
Domain: NSCocoaErrorDomain
Code: 3840
Failure Reason: The data is not in the correct format.
User Info: {
    NSDebugDescription = "Cannot parse a NULL or zero-length data";
}
--


System Information

macOS Version 14.2.1 (Build 23C71)
Xcode 15.2 (22503) (Build 15C500b)
Timestamp: 2024-01-30T13:39:41-08:00

Solution

  • I have the impression that the error is coming from Apple's servers. I'm having the same problem myself. The https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex page doesn't return anything.