Can the FoudnationalModel code now live in an SPM package?

Asked on 2025-06-12

1 search

Yes, the Foundation Models code can now live in a Swift Package Manager (SPM) package. The Foundation Models framework provides a convenient Swift API that allows you to integrate on-device large language models into your applications. This framework is available on macOS, iOS, iPadOS, and VisionOS, and it is designed to be easily integrated into your projects with just a simple import. This means you can organize your code, including the Foundation Models framework, into Swift packages, which can be managed using the Swift Package Manager.

For more details on the Foundation Models framework, you can refer to the session Meet the Foundation Models framework.