xcode 16 ios 18.0 simulator download failed

I installed xcode 16 and both Predictive Code Completion Model and iOS 18.0 Simulator Failed Download.

I can live without the code completion, but I can not get any Simulator to install.

I clicked of the info button and it shows the following:

Download failed. Domain: DVTDownloadableErrorDomain Code: 41 User Info: { DVTErrorCreationDateKey = "2024-09-30 15:57:24 +0000"; }

Download failed. Domain: DVTDownloadableErrorDomain Code: 41

Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({ RequestedBuild = 22A3351; }) Domain: DVTDownloadsUtilitiesErrorDomain Code: -1

Download failed as the server said authentication failed. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime) Domain: com.apple.MobileAssetError.Download Code: 41 User Info: { checkServer = 1; }

System Information

macOS Version 15.0 (Build 24A335) Xcode 16.0 (23051) (Build 16A242d) Timestamp: 2024-09-30T10:57:24-05:00

Where did you download Xcode from ?

I usually download from here: https://xcodereleases.com

I had the same issue. This is what helped me (I gleaned this knowledge from another thread):

  1. delete the 'Developer" file in hard drive>Library>Developer

Empty the trash.

  1. Deinstall Xcode.

  2. Re-install Xcode

  3. Restart your computer

  4. Open Xcode, the simulator should be able to be installed now

The "Developer" folder automatically gets created upon installation/launch of Xcode.

I hope this works!

PS. If anyone knows how to fix the "Unknown file type" error in an Xcode build, please let me know!

Note: upon restart of your computer and launch of Xcode, you will be able to get/install the simulator

Hello, unfortunately none of the solution work for me. But using this command after a fresh installation fixed the problem.

xcrun simctl runtime add "~/Downloads/iOS_18_Simulator_Runtime.dmg"

The reply by @saeedtkhapple@gmail.com seem to work perfectly. Just want to elaborate further.

  1. Ensure you are running Xcode-beta. If you cannot find it on the App store ensure to download it from https://developer.apple.com/download/all/?q=xcode%20beta

If you are downloading and installing a new xcode-beta manually after downloading it, do this: 1b. Before installing it, delete the Developer folder in the path /Library/Developer. (Don't worry, it will automatically regenerate the folder when you install a new Xcode.

1c. Uninstall any previous Xcode and restart computer.

1d. Clear trash bin

1e. Install The new Xcode-beta you just downloaded, and move it to the application folder.

After installing Xcode-beta, check if you can now download the iOS 18 simulator from the newly installed Xcode-beta.

If you still have the error, then you have to manually download and install the simulator.

To manually install the simulator, follow these steps

  1. Go to https://developer.apple.com/download/all/?q=xcode%20beta

  2. Look for an iOS Simulator for Xcode-beta (e.g iOS 18.1 beta 6 Simulator Runtime)

  3. Download the .dmg file

  4. After downloading, open your terminal and run the command the following commands:

a. sudo xcode-select -s /Applications/Xcode-beta.app b. xcodebuild -runFirstLaunch c. xcrun simctl runtime add "/Downloads/iOS_18.1_beta_6_Simulator_Runtime.dmg" d. xcodebuild -importPlatform "/Downloads/iOS_18.1_beta_6_Simulator_Runtime.dmg"

  1. Open your Xcode-beta app and you should see that your installation is successful.

Note: I did this on my 2018 Macbook Pro. Also I used it while building a Flutter app for iOS

See https://medium.com/@pouyahallaj/how-to-manually-download-and-install-ios-simulator-files-for-xcode-on-mac-b146923fd198 for more info. it was a helpful resource i found when fixing my own issue.

xcode 16 ios 18.0 simulator download failed
 
 
Q