I'm seeing a similar issue as well. Seems like the Foundation model is just not available for iPhone and iPad simulators anymore. To test it out I created a simple playground (similar to https://developer.apple.com/events/resources/code-along-205/) and just used basic code:
import FoundationModels
import Playgrounds
#Playground {
// Create a new session with the language model.
let session = LanguageModelSession()
// Asynchronously generate a response from a text prompt.
let response = try await session.respond(to: "Generate a 3-day itinerary to Paris.")
}
For macOS simulator it works, but for iPhone and iPad simulators it gives either error:
Apple Intelligence is not enabled.
The operation couldn’t be completed. (FoundationModels.LanguageModelSession.GenerationError error -1.)
I've tried Xcode 26.2. 26.3, 26.4 beta 1 & 2 versions. iPhone Simulators 26.2, 26.3 and 26.4 beta and none of them works. This is on a M4 Macbook pro
I also have an old M1 Macbook pro I haven't used since December and just tried it on there using Xcode 26.2 & iPhone 26.2 simulator and the playground with Foundation models works for iPhone simulator. So not sure why it doesn't work on the M4 machine anymore.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: