Requirements and installation
Add runtime recording and optional testing support from the same Swift package.
| Capability | Platform |
|---|---|
| Runtime recording, HTTP delivery, datasets, report uploading | iOS 27 or macOS 27 and later |
LedgeSession and Foundation Models | iOS 27 or macOS 27 and later |
| Native Apple Evaluations examples | iOS 27 or macOS 27 and the Evaluations framework |
The package requires Swift tools 6.4 or newer. The examples are checked with Swift 6.4 and the version 27 SDK. Native model execution additionally requires eligible hardware, Apple Intelligence enabled, and the model available.
Xcode
- Add
https://github.com/noahtovares/ledgekit-iosthrough File → Add Package Dependencies. - Select the
mainbranch containing the version 27 SDK cutover for these examples. - Link LedgeKit to your app target.
- Link LedgeKitTesting to targets that download datasets or upload evaluation reports.
Authenticate with an account that can access the repository if prompted. Check the resolved package revision into your app repository.
Package.swift
.package(url: "https://github.com/noahtovares/ledgekit-ios", branch: "main").product(name: "LedgeKit", package: "ledgekit-ios")
.product(name: "LedgeKitTesting", package: "ledgekit-ios")The testing product depends on the runtime product. Your test target owns native Apple Evaluations execution and scoring; LedgeKit does not require that framework at runtime.
Check SystemLanguageModel.default.availability before invoking the native model,
as in the quickstart. LedgeKit does not enable Apple Intelligence or
supply a fallback model. See Apple's Foundation Models documentation.