Requirements
- iOS 13+
- Xcode 15+, Swift 5.9+
- Swift Package Manager or CocoaPods
This is the native Swift package for apps with no Flutter involved. If your app is built with Flutter, use the Flutter SDK instead — it already covers iOS, Android, and Web from one package.
1. Add the package
In Xcode: File → Add Package Dependencies… and enter the package’s Git URL, or add it directly to yourPackage.swift:
Package.swift
Lerix as a dependency of your app target.
Or with CocoaPods
Podfile
pod install and open the generated .xcworkspace.
2. Initialize the SDK
CallLerix.initialize() as early as possible — application(_:didFinishLaunchingWithOptions:) in your AppDelegate. This registers your app/device with the backend and installs automatic crash reporting.
AppDelegate.swift
Find your API key and project ID in the Lerix Dashboard under Project Settings.
App lifecycle instead of a classic AppDelegate, attach one with @UIApplicationDelegateAdaptor:
Parameters
3. Verify the integration
Throw a test error to confirm everything is working:You’re all set! Continue to Error Tracking to report custom errors and enable automatic crash capture, or Push Notifications to enable push delivery.