Cannot load a Safari Extension onto my iPhone 15 running iOS 18.4

I'm trying to load a Safari Extension onto my physical iPhone 15 running iOS 18.4 but am seeing the following message: "iOS 18.4 is not installed."

When I click the Get button I see that the download has failed with the following error message. I tried updating my laptop to Sequoia and I also deleted and re-installed Xcode but that didn't fix it. Any thoughts?

Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
User Info: {
    DVTErrorCreationDateKey = "2025-04-08 06:00:22 +0000";
}
--
Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
--
Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({
    RequestedBuild = 22E238;
})
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.4 (Build 24E248)
Xcode 16.3 (23785) (Build 16E140)
Timestamp: 2025-04-07T23:00:22-07:00

Hey! This usually happens when Xcode can’t fetch the simulator catalog properly. Here’s the best way to fix it:

  1. Clean Xcode’s cache and reset the download catalog by running these in Terminal:
rm -rf ~/Library/Caches/com.apple.dt.Xcode  
rm -rf ~/Library/Developer/CoreSimulator  
defaults delete com.apple.dt.Xcode DVTFetchedAvailableDownloads  

Then restart Xcode, go to Settings > Platforms, and try downloading the iOS 18.4 simulator again.

  1. If that doesn’t work, try using the command line to force the download:
xcodebuild -downloadPlatform iOS  

This bypasses the GUI and downloads it directly.

  1. If you’re still stuck, check if there’s a newer Xcode version (like 16.4 beta or final) from Apple’s Developer website. Sometimes simulators for newer iOS versions only show up in newer Xcode builds.

  2. As a last resort, you can manually install the simulator by copying the iOS 18.4 simulator runtime folder (iOS 18.4.simruntime) from someone else’s Mac who already has it, or extract it manually from an IPSW file.

Hope this helps get your Safari extension running!

Cannot load a Safari Extension onto my iPhone 15 running iOS 18.4
 
 
Q