FoundationModels.LanguageModelError error -1 on visionOS simulator

I am getting FoundationModels.LanguageModelError error -1 when trying to use Foundation Models on the visionOS 27 simulator. It works on the iOS 27 simulator.

Is this a bug with the visionOS 27 simulator specifically?

A simulator bug is possible, but unfortunately all "FoundationModels.LanguageModelError error -1" tells us is something went wrong at the system level... the underlying problem could be a ton of different things, there's no way to tell from this error alone.

Standard things to try:

  • Update your Mac to the latest beta
  • Make sure your Xcode SDK and Simulator SDKs all match your Mac version, meaning they should be as-new-as the Mac.

If you're still experiencing the error after that, could you possibly send a Feedback Report, and ideally include a tiny Xcode project that includes just enough code to reproduce the error? Without a way to replicate we're stuck guessing.

FoundationModels.LanguageModelError error -1 on visionOS simulator
 
 
Q