Foundation models not detectable in Xcode simulator

I'm building an app which runs around the Foundation model framework. My expected output is generated when testing on a real device or in preview in Xcode but it throws Foundation Model error when I try running it on the simulator. I'm using a Macbook M1 air and have apple intelligence turned on and my simulator run destination is also an iPad Pro M5 (26.0). Any solution for this as this is my submission for the SSC so I need to make it work on the simulator iPad.

Thank you👾

Answered by DTS Engineer in 875832022

Hi @SuyashBel,

To run Foundation Models in Simulator, ensure that macOS is up to date. Utilizing Foundation Models framework in the Simulator requires macOS Tahoe, with Apple Intelligence enabled on the Mac. (System Settings -> Apple Intelligence) This will trigger a download of the model, which can also take a little time.

Additionally, make sure the simulator is running 26 or later. It can also be helpful to ensure you're using the latest version of Xcode.

If everything is updated and you're still having trouble, try restarting your Mac. If all that still fails, let us know and also please file Feedback so we can track this issue.

Best,

-J

Thanks for the post, I have only questions for you to narrow down and make sure I understand the platform not working.

Can you provide me the version of Xcode and what simulator are you using to ensure that the simulator you're using is compatible with the Foundation Model framework. Since your M1 Air and iPad Pro M5 are both Apple silicon devices, the simulator should generally support the latest frameworks. Make sure you have the latest version of Xcode installed. Update the simulator images to the latest version available. If possible, try running your app on a different simulator that you know works well with your app. You can choose from a list of simulators available in Xcode. Can you provide me that?

Can you provide me exactly the error you are getting in the simulator. Look at the error logs in Xcode for more specific information about what might be causing the issue. This can help in diagnosing the problem more accurately.

If possible, test your app on a real device using the same model as your target platform. This can sometimes bypass simulator-specific issues.

Good luck with your SSC submission!

Albert Pascual
  Worldwide Developer Relations.

Hi @SuyashBel,

To run Foundation Models in Simulator, ensure that macOS is up to date. Utilizing Foundation Models framework in the Simulator requires macOS Tahoe, with Apple Intelligence enabled on the Mac. (System Settings -> Apple Intelligence) This will trigger a download of the model, which can also take a little time.

Additionally, make sure the simulator is running 26 or later. It can also be helpful to ensure you're using the latest version of Xcode.

If everything is updated and you're still having trouble, try restarting your Mac. If all that still fails, let us know and also please file Feedback so we can track this issue.

Best,

-J

Foundation models not detectable in Xcode simulator
 
 
Q