I have integrated Apple’s Foundation Model into my iOS application. As known, Foundation Model is only supported starting from iOS 26 on compatible devices. To maintain compatibility with older iOS versions, I wrapped the API calls with the condition if #available(iOS 26, *).
The application works normally on an iPad running iOS 18 and on a Mac running macOS 26. However, when running the same build on a MacBook Air M1 (macOS 15) through iPad app compatibility, the app crashes immediately upon launch.
The main issue is that I cannot debug directly on macOS 15, since the app can only be built on macOS 26 with Xcode beta. I then have to distribute it via TestFlight and download it on the MacBook Air M1 for testing. This makes identifying the detailed cause of the crash very difficult and time-consuming.
Nevertheless, I have confirmed that the crash is caused by the Foundation Model APIs.
Hello,
Thank you for raising these concerns with AFM and OS versions.
Re: "However, when running the same build on a MacBook Air M1 (macOS 15) through iPad app compatibility, the app crashes immediately upon launch."
Running a TF build from beta Xcode 26 on macOS 15.x "through iPad app compatibility" seems unreliable.
A crash report can help diagnose the problem on the MBA which may be an isolated case for a specific configuration. Similarly, an Xcode project that shows the problem is ideal.
All that said, let's:
- File a bug report for crash on launch (with details above)
- File a bug report requesting code-level guidance on how to use #available(iOS 26, *) with AFM
See Feedback Assistant.
DTS Engineer