Swift Package Manager (Xcode)
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 →