Use of SpotlightSearchTool() returns "Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000" , although model is available

On macOS Golden Gate Developer Beta 4 the following code:

import CoreSpotlight
import FoundationModels
  
let tool = SpotlightSearchTool()

let session = LanguageModelSession(tools: [tool])

let response = try await session.respond(to: "What hikes have I gone on?")

, returns the following error:

Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000 "There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.modelcatalog" UserInfo={NSLocalizedFailureReason=There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.modelcatalog}

, although the model is available in general and can return responses without using the tool. The code:


print(SystemLanguageModel.default.availability) 

returns 'available'.

What am I doing wrong?

Whelp, that's totally a bug. 🐛

You're doing everything correctly! That's not an error you should ever see normally.

Thanks for reporting! I'm filing a bug report for this, although it would definitely help if you can tell me:

  • Did you update your Mac right before this error or within the past few hours before the error?

Rebooting your Mac should resolve the issue...

Thx for filing this bug!

This error already occurred during developer beta 3. After upgrading to developer beta 4 nothing changed. On beta 3 i already tried rebooting, changing general and Siri language settings, but nothing helped.

Use of SpotlightSearchTool() returns "Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000" , although model is available
 
 
Q