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.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

Meet the Foundation Models framework
Learn how to tap into the on-device large language model behind Apple Intelligence! This high-level overview covers everything from guided generation for generating Swift data structures and streaming for responsive experiences, to tool calling for integrating data sources and sessions for context management. This session has no prerequisites.

Discover machine learning & AI frameworks on Apple platforms
Tour the latest updates to machine learning and AI frameworks available on Apple platforms. Whether you are an app developer ready to tap into Apple Intelligence, an ML engineer optimizing models for on-device deployment, or an AI enthusiast exploring the frontier of what is possible, we’ll offer guidance to help select the right tools for your needs.