Skip to main content

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 your Package.swift:
Package.swift
Then add Lerix as a dependency of your app target.

Or with CocoaPods

Podfile
Run pod install and open the generated .xcworkspace.

2. Initialize the SDK

Call Lerix.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.
If your app uses the SwiftUI 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:
Then open your dashboard — the error should appear within seconds.
You’re all set! Continue to Error Tracking to report custom errors and enable automatic crash capture, or Push Notifications to enable push delivery.