Foundation model sandbox restriction error

I'm seeing this error a lot in my console log of my iPhone 15 Pro (Apple Intelligence enabled):

com.apple.modelcatalog.catalog sync: connection error during call: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction.} reached max num connection attempts: 1

Are there entitlements / permissions I need to enable in Xcode that I forgot to do?

Code example

Here's how I'm initializing the language model session:

private func setupLanguageModelSession() {
  if #available(iOS 26.0, *) {
    let instructions = """
      my instructions
      """

    do {
      languageModelSession = try LanguageModelSession(instructions: instructions)
      print("Foundation Models language model session initialized")
    } catch {
      print("Error creating language model session: \(error)")
      languageModelSession = nil
    }
  } else {
    print("Device does not support Foundation Models (requires iOS 26.0+)")
    languageModelSession = nil
  }
}
Answered by Frameworks Engineer in 845690022

Hi! This is a known issue in iOS 26 beta 2. Feel free to disregard the error message in the debugger console. No entitlements or extra permissions are needed.

Accepted Answer

Hi! This is a known issue in iOS 26 beta 2. Feel free to disregard the error message in the debugger console. No entitlements or extra permissions are needed.

I am also seeing this error on an iPad Pro 4th gen. However, while the output starts to partially generate, it doesnt seem to complete. Hopefully this is helpful! Thank you!