Installation
The Rive iOS Runtime is distributed as a pre-built binary XCFramework and can be integrated into your project using Swift Package Manager or CocoaPods.Requirements
Before installing, ensure your project meets the minimum platform requirements:- iOS 14.0 or later
- macOS 13.1 or later
- tvOS 16.0 or later
- visionOS 1.0 or later
- Mac Catalyst 14.0 or later
- Swift 5.9 or later
- Xcode 14.0 or later
Swift Package Manager (Recommended)
Swift Package Manager is the recommended way to integrate Rive into your project.Select Version
Choose your dependency rule:
- Up to Next Major Version: Recommended for most projects (e.g.,
6.15.2 < 7.0.0) - Exact Version: Lock to a specific version
- Branch: Use the latest development version (not recommended for production)
The package includes a pre-built
RiveRuntime.xcframework binary, so no compilation of the runtime is required.Package.swift Configuration
If you’re building a Swift package or want to add Rive as a dependency programmatically, add it to yourPackage.swift:
Package.swift
CocoaPods
If your project uses CocoaPods, you can add Rive to yourPodfile.
Platform-Specific Configuration
The RiveRuntime pod supports all Apple platforms. To specify platform requirements:Podfile
Verify Installation
After installing the runtime, verify it’s working correctly:Make sure to add a
.riv file to your project bundle. You can download sample files from Rive Community.Troubleshooting
Build Errors
If you encounter build errors after installation:- Clean Build Folder: In Xcode, select Product → Clean Build Folder (⇧⌘K)
- Reset Package Cache: For SPM projects, File → Packages → Reset Package Caches
- Update CocoaPods: If using CocoaPods, run
pod update RiveRuntime
Import Errors
If Xcode can’t find theRiveRuntime module:
- Verify the package is listed in your target’s Frameworks, Libraries, and Embedded Content
- Check that your deployment target meets the minimum requirements
- Restart Xcode and rebuild the project
Version Conflicts
If you have dependency conflicts:- SPM: Check your
Package.resolvedfile for version information - CocoaPods: Run
pod outdatedto see available updates - Ensure all dependencies support the same minimum platform versions
Privacy Manifest
The RiveRuntime includes a privacy manifest (PrivacyInfo.xcprivacy) that declares the framework’s privacy practices. This is automatically included when you add the package.
Starting with iOS 17, Apple requires privacy manifests for third-party SDKs. The Rive runtime includes this manifest automatically.
Next Steps
Now that you’ve installed the Rive iOS Runtime, continue to the Quick Start Guide to create your first animation.Updating the Runtime
Swift Package Manager
To update to the latest version:- In Xcode, select File → Packages → Update to Latest Package Versions
- Or update a specific package: File → Packages → Update Package