I'm trying to add Private Cloud Compute support to a macOS app and can't get session.respond to succeed. Every call — even a trivial one-line prompt — hangs for one to several minutes ("Thinking" in my UI) and then fails.
My setup:
macOS 27.2 beta on an M2 MBP
Xcode 27.2
The Private Cloud Compute capability is added in Signing & Capabilities, and com.apple.developer.private-cloud-compute is present in the built app's entitlements
Removing the entitlement produces the expected error at construction ("Missing entitlement: com.appledeveloper.private-cloud-compute"), confirming it's genuinely being read
PrivateCloudComputeLanguageModel().availability reports .available
Apple Intelligence is enabled, I'm signed into iCloud with an eligible account/region, and system language is English
The failure reproduces with zero tools registered on the session, and with a single isolated request.
Relevant code:
swift
let model = PrivateCloudComputeLanguageModel()
let session = LanguageModelSession(model: model, instructions: "You are a helpful assistant.")
let result = try await session.respond(to: "What is 17+10?")
The error, in full, after several minutes:
Error Domain=FoundationModels.LanguageModelError Code=-1 "The operation couldn't be completed. (FoundationModels.LanguageModelError error -1.)" UserInfo={NSLocalizedDescription=The operation couldn't be completed. (FoundationModels.LanguageModelError error -1.), NSMultipleUnderlyingErrorsKey=(
"Error Domain=FoundationModels.LanguageModelError Code=-1 "(null)" UserInfo={NSMultipleUnderlyingErrorsKey=(\n "Error Domain=com.apple.GenerativeFunctionsFoundation.GenerativeError Code=5040000 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"\n)}"
)}
Questions:
Is this a known issue with Private Cloud Compute for macOS apps at this point in the beta?
Does GenerativeFunctionsFoundation.GenerativeError code 5040000 mean anything specific — a connectivity failure, a capacity/availability issue, something else?
Is there a way to get more diagnostic detail than this generic top-level error — a specific log subsystem to check in Console, for instance?
Any guidance appreciated — happy to provide a full sysdiagnose or additional repro detail if useful.
0
0
216