Following is an error I encounter when trying to run a foundation model function in simulator.
Error Domain=FoundationModels.LanguageModelSession.GenerationError Code=-1 "(null)" UserInfo={NSMultipleUnderlyingErrorsKey=(
"Error Domain=ModelManagerServices.ModelManagerError Code=1026 "(null)" UserInfo={NSMultipleUnderlyingErrorsKey=(\n)}"
)}
Its a swift playground I'm building in xcode and works fine in the preview and on a real device too but since it's my submission for the swift student challenge I need it to run on the simulator.
I have updated my macOS to latest version of Tahoe(26.3) and Xcode is also on latest version. The simulator I run the playground is also on ios and iPadOS 26.
I have set my region to US and have turned on Apple Intelligence on my mac too.
Any suggestions on how to fix the issue?👾
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Swift Student Challenge
Xcode
Simulator
Apple Intelligence