Kupsi
Kupsi

Reputation: 287

iOS 17.0 Simulator (21A328) Failed with HTTP status 400: bad request

I update from Xcode 15 beta to Xcode 15.

I wanted to install the iOS package and got this error:

Screenshot

I already reinstalled Xcode.

There are already newer versions on the Apple site than what is shown here. Is that maybe where the error comes from?

Upvotes: 27

Views: 13855

Answers (7)

Scott
Scott

Reputation: 47

I had this recently and it turned out to be an MDM policy on my Mac that was intending to block external USB devices from being mounted, but ended up also blocking downloaded volumes from being mounted.

Upvotes: 0

Deepak Tiwari
Deepak Tiwari

Reputation: 11

I also faced this issue, because of storage issue. But I am using a Apple M1 256 GB and I can't able to reduce my storage because system data is 150 GB.

I just downloaded the runtime from Apple and ran the following command in the terminal after download. It worked.

xcrun simctl runtime add iOS_17_Simulator_Runtime.dmg

Upvotes: 1

EDMOND GIHOZO
EDMOND GIHOZO

Reputation: 345

I have tried all the suggested methods, but none of them worked for me.

So I did go to App Store, and updated Xcode. After the update is done, running Xcode, it shows the list of simulators to install. Select iOS 17.0.

Then it works well.

Upvotes: -1

Zeeshan Ahmad II
Zeeshan Ahmad II

Reputation: 1193

Just sign in with your Apple Developer account to Xcode → Signing in & capabilities → select Team, and it starts your downloading again. This works for me.

Upvotes: 0

Serhii Londar
Serhii Londar

Reputation: 726

Try the link https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg.

You can download it manually from here and install it using instruction from Installing and managing Simulator runtimes

After downloading, run:

xcrun simctl runtime add iOS_17_Simulator_Runtime.dmg

Upvotes: 48

Shreya Prasad
Shreya Prasad

Reputation: 11

For me it worked by downloading the stimulator through the command line.

Just type this command in the terminal:

xcodebuild -downloadPlatform iOS

Upvotes: 1

mārt1cz
mārt1cz

Reputation: 693

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 Wi-Fi / Ethernet connection

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

Upvotes: 0

Related Questions