Apple (iOS / macOS) with AllStak
Capture crashes, errors, and performance from your iOS, macOS, or tvOS app with the AllStak Apple SDK.
- Source repository:
- AllStak/allstak-apple
- Source README:
- README.md
- SDK version:
- 0.2.0
- Installation source:
- Swift Package Manager / CocoaPods
- Last verified:
- 2026-05-31
Installation
Add via Swift Package Manager or CocoaPods.
// Swift Package Manager
.package(url: "https://github.com/AllStak/allstak-apple.git", from: "0.2.0")
// CocoaPods
pod 'AllStak', '~> 0.2'Configuration
Start AllStak once, early at launch.
import AllStak
AllStak.start(
apiKey: "astk_live_xxxxxxxx",
environment: "production",
release: "1.4.2"
)Basic example
Crash, app-hang, and session tracking are on by default after start().
Capturing errors
Capture errors and messages.
do { try risky() } catch { AllStak.capture(error) }
AllStak.capture(message: "checkout failed", level: "warning")Tracking requests
Outbound URLSession requests are auto-instrumented by default (records redacted HTTP breadcrumbs and attaches W3C traceparent + baggage). Opt out with enableAutoHttpInstrumentation: false.
Best practices
- Call AllStak.start once at launch.
- Set environment and release.
- Upload dSYMs (Scripts/allstak-upload-dsyms.sh) for symbolicated crashes.