Also running the same exact code that runs fine on the mac simulator on iPhone simulators with iOS 26
result in this error:
guardrailViolation(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Safety guardrail was triggered after consecutive failures during streaming.", underlyingErrors: []))
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Tags: