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.

Post not yet marked as solved Up vote post of jovanpreet23 Down vote post of jovanpreet23
14k views
  • Same here FB13185246

    Ventura 13.5.2 Tried AppStore and download from Developer portal, tried to clean old Xcode data from (~/Library/Developer) with no luck.

    Anyone facing this issue please post Feedback Assistance to attract attention of Apple.

  • I have experienced the same thing but there is no solution.

  • Currently facing the exact same issue (Ventura 13.5.2)

Replies

Same here when try to install iOS 17 with xCode

Failed with HTTP status 400: bad request Domain: DataGatheringNSURLSessionDelegate Code: 1 User Info: { DVTErrorCreationDateKey = "2023-09-19 09:06:58 +0000"; }

System Information

macOS Version 14.0 (Build 23A339) Xcode 15.0 (22265) (Build 15A240d) Timestamp: 2023-09-19T11:06:58+02:00

  • It's my second day of using Xcode (yesterday was fine LOL) and I also run into this. Not a good look.

  • RESOLVED Was able to download the simulator dmgs, move them to another directory and then install with command line.

Add a Comment

Same here FB13185246

Ventura 13.5.2 Tried AppStore and download from Developer portal, tried to clean old Xcode data from (~/Library/Developer) with no luck.

Anyone facing this issue please post Feedback Assistance to attract attention of Apple.

Same issue here with Xcode 15 (Running on M1 Max with Ventura 13.5.2)

I have the same problem! The downloads work on my Mac mini with macOS Sonoma beta but on my Mac Book Pro with macOS Ventura 13.5.2 I only get the 404 bad request status. I tried it with the App Store version, the direct download and the previous RC version. Nothing works.

Same problem report on Stack Overflow https://stackoverflow.com/questions/77133646/ios-17-0-simulator-21a328-failed-with-http-status-400-bad-request

Try this link - https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg You can download it manually from here - https://developer.apple.com/download/all/ and install it using instruction from here - https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes

This solution from StackOverflow / Serhii Londar worked for me:

Try this link - https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg You can download it manually from here - https://developer.apple.com/download/all/ and install it using instruction from here - https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes

Here is how to install iOS 17 simulator manually:

  1. Download "iOS 17 Simulator Runtime" from https://developer.apple.com/download/all/
  2. Install Xcode 15
  3. Use article by link below to install iOS simulator runtime from command line:

https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes

Worked for me

For anyone having the same issue: please check out this solution https://stackoverflow.com/a/77133957/12113688 It worked for me!

I fixed it by flushing the DNS, try this:

  1. Open the Terminal app
  2. Enter sudo dscacheutil -flushcache, enter your password if prompted
  3. Enter sudo killall -HUP mDNSResponder
  4. Reconnect your WiFi / Ethernet

Or you can simply flush the DNS with CleanMyMac, either method works just the same.

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.

I succeded in terminal issuing:

xcodebuild -downloadAllPlatforms

DONT know HOW, but it reset something :(

  • This seems to have worked for a day or so. Out of nowhere I got the "17.0 not installed" message even though I had just deployed to a device 2 minutes ago. Xcode 15.0 on Sonoma.

Add a Comment

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 ran this, then deleted and redownloaded the Xcode > Settings > Platforms > iOS 17.0 …Then building the iOS project took forever but worked fine after that. Before doing this it was just stuck at "28" on build, forever (top right where the "Build Succeded" message appears in Xcode project window). So… Thx for the tip.

Add a Comment

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.