Xcode 16.2 : Unable to install Platform Support Runtimes + Predictive Code Completion Model

Summary :

I tried everything from uninstalling completely XCODE to upgrading the macOS without any success.

Cleanup Xcode & Upgrade macOS to 15.3.1

This scripts were used to clean up the xcode and residual files. Also used CleanMyMac for the rest !

VERSION="" # "-16.2.0"

## Xcode Deep Clean

# 1. Delete Xcode Itself
sudo rm -rf /Applications/"Xcode${VERSION}".app

# 2. Remove Xcode Cache and Derived Data
sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode
sudo rm -rf ~/Library/Developer/Xcode
sudo rm -rf ~/Library/Application\ Support/Xcode
sudo rm -rf ~/Library/Developer/CoreSimulator
sudo rm -rf ~/Library/Developer/Shared

# 3. Remove Command Line Tools (CLT)
sudo rm -rf /Library/Developer/CommandLineTools

# 4. Remove Xcode Preferences and Supporting Files
sudo rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist
sudo rm -rf ~/Library/Logs/CoreSimulator
sudo rm -rf ~/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState

# 5. Remove Simulator Data
sudo rm -rf ~/Library/Developer/CoreSimulator

# 6. Remove Swift & Code Completion Models
sudo rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode
sudo rm -rf ~/Library/Application\ Support/Xcode

Problem :

When i try to press the button "Get" from Xcode -> Settings -> Components i receive systematically these issues :

For Predictive Code Completion Model :

The operation couldn’t be completed. (IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11b3c5a90).DownloadError error 2.)
Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11b3c5a90).DownloadError
Code: 2
User Info: {
    DVTErrorCreationDateKey = "2025-02-20 2:36:06\U202fPM +0000";
}
--
There was an error transferring over the network.
Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11b3c5a90).DownloadError
Code: 2
--

System Information

macOS Version 15.3.1 (Build 24D70)
Xcode 16.2 (23507) (Build 16C5032a)
Timestamp: 2025-02-20T15:36:06+01:00

For Platform Support (ex. iOS 18.2 + iOS 18.3.1 Simulator)

Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
User Info: {
    DVTErrorCreationDateKey = "2025-02-20 2:24:03\U202fPM +0000";
}
--
Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
--
Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({
    RequestedBuild = 22D8075;
})
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.3.1 (Build 24D70)
Xcode 16.2 (23507) (Build 16C5032a)
Timestamp: 2025-02-20T15:24:03+01:00

More Details :

By the way im on a MacBook Pro with M1 Max 32GB and 1TB storage. I still have more than 100 GB of Storage. I also switched to RJ45 to be sure its not network issue !

Answered by DTS Engineer in 825932022

I'm not sure about using any third party scripts to "clean" an install of Xcode and how successful that will be. Much of what that's trying to do is undocumented.

You might want to try using a new login account on your machine: In your System Preferences, use the Users & Groups panel to create a new login account on your machine. Then, login as that user, and try to reproduce the problem.

If that doesn't help then our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the FB number here once you do.

Bug Reporting: How and Why? has tips on creating your bug report.

I'm not sure about using any third party scripts to "clean" an install of Xcode and how successful that will be. Much of what that's trying to do is undocumented.

You might want to try using a new login account on your machine: In your System Preferences, use the Users & Groups panel to create a new login account on your machine. Then, login as that user, and try to reproduce the problem.

If that doesn't help then our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the FB number here once you do.

Bug Reporting: How and Why? has tips on creating your bug report.

I can tell you guys that this issue is only related to all Xcode versions from 16.0 to 16.2 !!

I downloaded Xcode 15.4 and managed to run it and i can download runtimes no problem !

Here is what happen with Xcode 16.0 to 16.2 !

Hope you can fix the issues soon :(

Thanks for the information. Say, if you file a bug about that please post the number here. I'll circle back and check the comments in the bug and let you know if I see anything useful there.

Other people are having same issue ! https://developer.apple.com/forums/thread/771499

Still here having same issues on xcode 16.2

Still here having same issues on xcode 16.2

I ran into this same problem with macOS 15.4.1 and Xcode 16.3 on a brand new M4 air with plenty of room. I had migrated my account from another machine, and have seen that cause some issues in the past, but what solved it for me was a hint in this Stack Overflow thread.

To solve this problem, I went into Settings, disabled Apple Intelligence, waited a sec, then re-enabled it, and then went back to Xcode. It "just worked" after that!

The issue is still happening with Xcode 16.4 as well i cannot install iOS 18.4+ !!!!

Its weird that Apple did not adresse this issue so far !!!

Just updated to Xcode 26.0.1 same issue still here !!! Im on macOS : 15.7.1 !!! cannot believe it dude.

Well iOS 18.0+ cannot be installed from xcode !! this is xcode 26.0.1.

Only till iOS 17.5 as you can clearly see !

The only way to install iOS 18.2 so far i can find on Apple servers is by doing so manually and downloading the dmg her e: https://developer.apple.com/download/all/?q=ios

Accepted Answer

i finally fixed it guys. And here is what i did in case this helps someone !!!!

in /etc/hosts :

Make sure no *.apple.com has the 0.0.0.0 !!!

On System prefs :

in this state "Apple intelligence is not working yet probably, stuck at 100% or going from 0 to 100 in 1 sec"

  • Disable Apple inteligence
  • Switch Region to United States (I was in region France)
  • Enable Siri and set language to English United States (French doesn't work with Apple Intelligence)
  • i sign-out form apple account and logged back in after the restart !

Restart macOS

  • Enable Apple Inteliggence

-- Here you will see that the download started and progress now works perfectly

Wait untill download end and everything is all perfect !! (Don't ruch take time)

On Xcode :

Now everything will work perfectly !!!

Tested on Xcode 16.4 & 26.0.1

Xcode 16.2 : Unable to install Platform Support Runtimes + Predictive Code Completion Model
 
 
Q