Hi, I'm trying to add FoundationModels to an older project but always get the following error:
"Unable to resolve 'dependency' 'FoundationModels' import FoundationModels"
The error comes and goes while its compiling and then doesn't run the app.
I have my target set to 26.0 (and can't go any higher) and am using Xcode 26 (17E192).
Is anyone else having this issue?
Thanks, Dan Uff
The error comes and goes while its compiling and then doesn't run the app.
This typically happens when the code is shared across multiple targets, and one of them has minimal deployment target lower than version 26. Also, if your project has a watchOS app, the FoundationModels framework isn't currently available in watchOS.
If that is not your case, I'll be interested in looking into your project, or the build log that contains the error.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.