"Error Domain=ModelManagerServices.ModelManagerError Code=1026 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"

import Playgrounds
import FoundationModels

#Playground {    
    do {
           let session = LanguageModelSession()
           let response = try await session.respond(
               to: "Explain SwiftUI in one sentence."
           )
           print(response.content)
       } catch {
           print("Error: \(error)")
       }
    
}```

I tested Foundation Models with this simple code, and it generated this error: "Error Domain=ModelManagerServices.ModelManagerError Code=1026 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"
I tried restarting my Mac and Apple Intelligence, but that didn't work. What did work was updating Xcode and the simulators to the latest possible version.

I tried restarting my Mac and Apple Intelligence, but that didn't work. What did work was updating Xcode and the simulators to the latest possible version.

Thanks, I'll pass this on to the team.

In general, for any "weird" or system-looking error, always first check your Xcode and SDK match your OS versions exactly. This is the most common culprit we see, and it happens because the SDK is sending model info that doesn't match what's on the machine.

How is this generally achieved? My Mac OS version is 26.6, xcode is also 26.6, but I can't seem to be able to find an iOS package for 26.6 in simulators. I'm on 26.5.

Thank you!

"Error Domain=ModelManagerServices.ModelManagerError Code=1026 \"(null)\" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"
 
 
Q