WWDC24 - Xcode 16 + macOS 15 Beta 1 - Unable to Download Predictive Code Completion Model

Hi

Excited to try out the new Xcode Swift code completion ML tools demo'd yesterday at the SOTU.

I am running macOS 14.5, using a VM Via Virtualization Framework ( UTM.app) to run macOS 15 Beta 1.

Ive installed XCode 16 Beta 1 in my Host OS (macOS 14.5) and was able to successfully install, boot, and set up macOS 15 as a VM client.

Ive installed Xcode 16 in my VM Client, and upon launch, was asked to download the Predictive Text model.

I see this error:

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


System Information

macOS Version 15.0 (Build 24A5264n)
Xcode 16.0 (23037.4) (Build 16A5171c)
Timestamp: 2024-06-11T13:11:32-07:00

Hello!

Unfortunately, the new LLM based code completion features in macOS Sequoia and Xcode 16 don't support VMs, including QEMU VMs like the ones you'd be able to use from UTM.app.

Sorry for the bad news. We hope you'll be able to find another way to give the features a try!

I'm attempting the same thing, but via VirtualBuddy, which I believe uses Apple's virtualization technology instead of QEMU. However, I get the same error when attempting to install the Predictive Text model.

Is there any VM arrangement where we can use/try Predictive Text in Xcode?

If you have enough available storage on your system disk, you can set up dual booting to take macOS Sequoia for a spin. Here's a very good reference video:

https://www.youtube.com/watch?v=xzUPFeat9U4

Otherwise, one can use an external SSD or flash drive. Just remember to perform a TimeMachine backup before attempting any of these solutions.

I'm not in a virtual machine and I'm still getting the error.

Failed to find asset: com.apple.fm.code.generate_small_v1.tokenizer - no asset

Should I just reinstall and try again?

I'm also not on a virtual machine (I created a partition and booted to it) and I'm getting the same "failed to find asset" error.

Whew. A whole month after the first release and I've managed to solve this for my own situation.

Just signed up to share in case anyone else happens to be in a similar situation, especially as the Xcode beta's download UI and error messages weren't very helpful for me.

Situation: I've been using iPhone's Personal Hotspot as my primary internet connection for several weeks (recently moved to a new apartment and 400mbps+ download is more than enough for my needs.)

Solution: Temporarily disable optimized battery charging on iPhone.

Side note — if there are any Apple engineers on the relevant team reading, I'd consider this to be unexpected behavior. Xcode has had no problem downloading much larger files such as Simulator runtimes.

Great getting this issue now with the release candidates released today

I have the same Issue. No VM.

I'm not in a virtual machine and I'm still getting the error.

Situation: No VM, I used iPhone's Personal Hotspot

Solution: Plug in a Mac to a charge and switch the hotspot to Android one (not sure what helped)

Result: the downliading started.

WWDC24 - Xcode 16 + macOS 15 Beta 1 - Unable to Download Predictive Code Completion Model
 
 
Q