Swift Package Manager (Xcode)
1
Open your project
Open your project in Xcode
2
Add package dependency
Go to File → Add Package Dependencies…
3
Enter repository URL
Enter the repository URL:
https://github.com/RunanywhereAI/runanywhere-sdks4
Select version
Select the version (e.g.,
from: "0.16.0")5
Choose products
Choose the products you need: - RunAnywhere (required) – Core SDK - RunAnywhereLlamaCPP
– LLM text generation with GGUF models - RunAnywhereONNX – ONNX Runtime for STT/TTS/VAD
Package.swift
For Swift packages, add the dependency directly to yourPackage.swift:
Package.swift
Package.swift
Available Products
| Product | Description |
|---|---|
RunAnywhere | Core SDK (required for all features) |
RunAnywhereLlamaCPP | LLM capability with GGUF models |
RunAnywhereONNX | STT, TTS, and VAD via ONNX Runtime |
Binary Size Impact
| Configuration | Approximate Size |
|---|---|
| LLM only | ~17 MB |
| STT only (ONNX) | ~52 MB |
| LLM + STT + TTS | ~87 MB |
| Full (all backends) | ~95 MB |
Verify Installation
After installation, verify everything is working:Troubleshooting
Package resolution fails
Package resolution fails
Try resetting package caches: 1. Go to File → Packages → Reset Package Caches 2. Clean the
build folder: Product → Clean Build Folder 3. Try adding the package again
Module not found errors
Module not found errors
Ensure you’ve added the correct product to your target’s dependencies. Each module must be
explicitly added.
Linker errors with XCFrameworks
Linker errors with XCFrameworks
If you encounter linker errors, ensure your deployment target meets the minimum requirements: -
iOS 17.0+ - macOS 14.0+
Next Steps
Quick Start
Build your first AI feature →