Skip to content
You are reading the Ratify Protocol v2 beta documentation. Protocol v1 remains available at the site root.

Swift SDK (v2)

Add the tagged repository as a Swift package in Xcode, or add this dependency to Package.swift:

.package(url: "https://github.com/identities-ai/ratify-protocol.git", exact: "2.0.0-beta.2")

Select the RatifyProtocol library product and import RatifyProtocol in the app. The tagged package downloads the release XCFramework and verifies the checksum pinned in Package.swift. It supports iOS 17+ and macOS 14+.

The hand-written Swift API exposes typed keys, delegation signing, challenge issuance, verification, receipt publication, and decision release. The application may act only after Ratify.releaseDecision returns a released decision and its action check succeeds. See the SDK README for source builds, key custody, and platform limits.

The SDK runs the shared v2 corpus and cross-SDK fixtures. This beta has had the project’s own pre-release review; external independent review remains a gate for the stable release.