PrivateCloudComputeLanguageModel fails to respond

I am trying out the new PrivateCloudComputeLanguageModel but can't get it to work. When I call session.respond it throws the following error:

Error Domain=FoundationModels.LanguageModelError Code=-1 "The operation couldn’t be completed. (FoundationModels.LanguageModelError error -1.)" UserInfo={NSMultipleUnderlyingErrorsKey=(
         "Error Domain=FoundationModels.LanguageModelError Code=-1 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n    \"Error Domain=ModelManagerServices.ModelManagerError Code=1046 \\\"(null)\\\" UserInfo={NSMultipleUnderlyingErrorsKey=(\\n)}\"\n)}"
     ), NSLocalizedDescription=The operation couldn’t be completed. (FoundationModels.LanguageModelError error -1.)}

Maybe error code 1046 means something, but I can't find a mention of it in the docs.

My set-up:

  • macOS Golden Gate on a MacBook Pro M1
  • Xcode 27.0.0 beta 1, calling the model as part of a test on a iPhone 17 simulator with iOS 27 beta 1.

I do have the Private Cloud Compute entitlement (removing it triggers a fatalError). model.isAvailable returns true. I tried logging into iCloud on both the macOS host as well as the simulator, but no difference.

Relevant code:

Answered by Frameworks Engineer in 891745022

Hi! There is a known issue that Private Cloud Compute does not currently work in simulators.

https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes#Foundation-Models

Private Cloud Compute might not work when you use simulators. (177684296)

Workaround: Use a physical device running OS 27.0.

Sorry for the inconvenience!

Accepted Answer

Hi! There is a known issue that Private Cloud Compute does not currently work in simulators.

https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes#Foundation-Models

Private Cloud Compute might not work when you use simulators. (177684296)

Workaround: Use a physical device running OS 27.0.

Sorry for the inconvenience!

Hi. I'm getting this same error on a physical device.

The operation couldn't be completed.
(FoundationModels.LanguageModel-Error error -1.)

isAvailable = true

iPhone 17 Pro Max, New Siri enabled.

PrivateCloudComputeLanguageModel fails to respond
 
 
Q