Post

Replies

Boosts

Views

Activity

Reply to Foundation models not detectable in Xcode simulator
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.
2w
Reply to Foundation models not detectable in Xcode simulator
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.
Replies
Boosts
Views
Activity
2w
Reply to Granting Microphone Access through in-app authorisation request on the VisionOS 2.4 Simulator causes it to crash
This seems to be happening on iOS 24 as well. Calling AVAudioApplication.shared.recordPermission crashes the app in simulator.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Widget intent configuration generated code has warnings in Xcode 14
Is there a work around for this issue or is it recommended to wait for the fix in the upcoming Xcode betas?
Replies
Boosts
Views
Activity
Jul ’22