LedgeKitDocs
Developer documentation

Requirements and installation

Add runtime recording and optional testing support from the same Swift package.

CapabilityPlatform
Runtime recording, HTTP delivery, datasets, report uploadingiOS 27 or macOS 27 and later
LedgeSession and Foundation ModelsiOS 27 or macOS 27 and later
Native Apple Evaluations examplesiOS 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

  1. Add https://github.com/noahtovares/ledgekit-ios through File → Add Package Dependencies.
  2. Select the main branch containing the version 27 SDK cutover for these examples.
  3. Link LedgeKit to your app target.
  4. 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.

On this page