Xcode 15 - Unable to install iOS 17 Simulator runtime

I am getting Failed with HTTP status 400: bad request when trying to install iOS 17 simulator. I even tried xcodebuild -downloadPlatform iOS and got below error

Finding content...2023-09-19 09:48:50.222 xcodebuild[1034:23187]  DVTDownloadable: Observed finish. Stop observing simulator updates. error: (null)
Downloading iOS 17.0 Simulator (21A328): Preparing to download...2023-09-19 09:48:51.556 xcodebuild[1034:23187]  DVTDownloadable: Download Failed. Downloadable: https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime_Release_Candidate/iOS_17_Simulator_Runtime_Release_Candidate.dmg. Error Domain=DataGatheringNSURLSessionDelegate Code=1 "Failed with HTTP status 400: bad request" UserInfo={NSLocalizedDescription=Failed with HTTP status 400: bad request}
Downloading iOS 17.0 Simulator (21A328): Error: Error Domain=DataGatheringNSURLSessionDelegate Code=1 "Failed with HTTP status 400: bad request" UserInfo={NSLocalizedDescription=Failed with HTTP status 400: bad request}

When installing with Xcode 15 I get the same error.

I have installed Xcode from App Store and I am running macOS Sonoma RC.

I am having the exact same issue. Just updated OS and Xcode and now my simulators aren't working.

Does the issue reproduce if you:

Open Xcode > Settings… > PlatformsClick the refresh button in the bottom right cornerClick "Get" for the SDK you want

Flushing the DNS did not work for me!

What worked for me was to...

  1. Turn off Beta Updates and Restart my Mac
  2. Install the Release Candidate Xcode 15 Command Line Tools
  3. Restart again
  4. Start Xcode

Currently facing the exact same issue (Ventura 13.5.2).. Please help in case any fix is available.

@Developer Tools Engineer For older versions like iOS 16.4 installation failed saying not enough disk space. I had nearly 60gb free. Now, I removed xcode and all cache completely and re-installed it from Mac App Store. For iOS 17 its the same error, 16.4 succeeded. Also, (devices) iPhone iOS 17 and iPad iPadOS 16.5 are recognised in Devices and Simulators but doesn't show up in Run destinations even after setting them to be shown 'Always'.

Same issue for me, there ares some position about that issue from Apple?

I succeded in terminal issuing:

xcodebuild -downloadAllPlatforms

DONT know HOW, but it reset something :(

This seems to be a common issue. I suspected prior installation of the Xcode 15 RC may be related. None of the other fixes worked for me, but the following approach just did:

xcrun simctl runtime match list -v

Revealed the following:

iphoneos17.0: SDK Version: 17.0 SDK Build: 21A325 SDK Directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk Platform: com.apple.platform.iphoneos Chosen Runtime: 21A325 User Override: (null) Preferred: 21A328 Default: 21A325

The 21A325 looked like an RC version. I then did the following:

xcrun simctl runtime match set iphoneos17.0 21A328

With this I was able to manually delete and reinstall the iOS 17.0 SDK the normal way within Xcode, and now, finally, all the iOS Simulators are shown.

I've faced same issue. Fixed it.

Root cause: While download is in progress, the download interrupted because for several reasons like screen locked, network disconnected, screen went to sleep.

Fix: Nothing I made, just keeping the network connectivity without disconnection & keeping the laptop screen active (not allowed to lock / sleep), this resolved the download error.

Note: not sure whether this can help all of you, may be for one.

Xcode 15 - Unable to install iOS 17 Simulator runtime
 
 
Q