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 :(

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