Xcode and runtime mismatch error

I keep getting "iOS 18.5 must be installed": dialoge box and when i try downloding 18.5 it fail Download failed. Domain: DVTDownloadableErrorDomain Code: 41 User Info: { DVTErrorCreationDateKey = "2025-08-24 20:40:42 +0000"; }

Download failed. Domain: DVTDownloadableErrorDomain Code: 41

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

Download failed due to a bad URL. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime) Domain: com.apple.MobileAssetError.Download Code: 49 User Info: { checkConfiguration = 1; }

System Information

macOS Version 15.5 (Build 24F74) Xcode 16.4 (23792) (Build 16F6) Timestamp: 2025-08-24T21:40:42+01:00

Answered by edsancho in 855256022

Download failed. Domain: DVTDownloadableErrorDomain Code: 41 User Info: { DVTErrorCreationDateKey = "2025-08-24 20:40:42 +0000"; }

Download failed. Domain: DVTDownloadableErrorDomain Code: 41

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

Download failed due to a bad URL. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime) Domain: com.apple.MobileAssetError.Download Code: 49 User Info: { checkConfiguration = 1; }

System Information

macOS Version 15.5 (Build 24F74) Xcode 16.4 (23792) (Build 16F6) Timestamp: 2025-08-24T21:40:42+01:00

Download failed due to a bad URL.

Since it's been a day or so since you posted the error message here, what happens if you try again? I'm looking to see if this was just a transient error first.

— Ed Ford,  DTS Engineer

When the new Xcode can't download simulators, it's usually a permissions issue. Solution:

Set the new Xcode as default:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Download iOS platform with sudo:

sudo xcodebuild -downloadPlatform iOS

If your Xcode isn't installed in the default path, update the path in step 1 to your actual installation location. This resolves the write permission issue for new simulators.

Xcode and runtime mismatch error
 
 
Q