Skip to main content

Swift Package Manager (Xcode)

1

Open your project

Open your project in Xcode 26 or newer.
2

Add package dependency

Go to File → Add Package Dependencies…
3

Enter repository URL

Enter https://github.com/RunanywhereAI/runanywhere-swift
4

Select version

Choose Up to Next Major from 0.20.24.
5

Choose products

RunAnywhere is required. Add the backends you need.

Package.swift

Package.swift
Then add the products your target uses:
Package.swift
Depend on runanywhere-swift, not on the runanywhere-sdks monorepo. It is the Swift-only distribution generated from that monorepo: a few MB instead of a few hundred, and it carries the generated proto sources the monorepo no longer commits. Its tags are bare semver with no v prefix, which is what from: expects.

Available products

Include only what you need. Each backend carries native libraries, so each one you add grows the app.

Requirements

Register backends before initializing

The C++ plugin registry has to know which engines exist before the first model load. Register first, initialize second, or loading fails with “No provider could handle the request”.

Troubleshooting