xcodemacosxcode16

How to fix Xcode 16 Beta Predictive Code Completion Model download error?


Error:

Whenever I try to download the Predictive Code Completion Model in Xcode, I'm getting this error:

The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.)
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
User Info: {
    DVTErrorCreationDateKey = "2024-08-23 08:55:17 +0000";
}
--
Failed to find asset: com.apple.fm.code.generate_safety_guardrail.tokenizer - no asset
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
--


System Information

macOS Version 15.0 (Build 24A5327a)
Xcode 16.0 (23049) (Build 16A5230g)
Timestamp: 2024-08-23T16:55:17+08:00

System:

I'm currently using Xcode 16 Beta 6 and macOS 15 Beta 7. It was working before, but with the latest updates, it now appears to be broken.

Troubleshooting:

I already did a lot of restarts and reinstallation. I also installed Xcode 16 Beta 5, and Xcode 16.1 Beta, but they now all have the same issue, so I'm guessing this is probably caused by macOS 15 Beta 7?

Status:

I can't find a lot of reports about this one. Even in the Apple Developer Forums, it only has this: https://forums.developer.apple.com/forums/thread/762638

I have already sent a report using the Feedback Assistant

Question:

Has anyone else in macOS 15 Beta 7 also encountered this one? and were you able to resolve this error?


Solution

  • UPDATE:

    Problem is with macOS version and not with Xcode.

    Latest macOS 15 Beta 8 still has the same issue.

    However updating to macOS 15.1 Beta 3 allowed me to use Predictive Code Completion again. Hope this helps anyone with the same issue.