1. Get an app key
Each app in a project has its own key, for examplea-…. Find it in the console under
Settings › Apps and keys. App keys ship inside your app, so they are not secrets.
2. Add the SDK
In Xcode, choose File → Add Package Dependencies, enterhttps://github.com/Apsio/apsio-apple-sdk, choose Up to Next Major Version from 0.1.0, and add
the Apsio product to your app target.
3. Start Apsio
4. Cause a test crash
Add a temporary button that crashes:- Run the app from Xcode, then stop it in Xcode: the debugger would catch the crash before Apsio does.
- Open the app from the home screen and tap Test crash.
- Open the app again. Apsio sends the crash report at this launch.
5. See the crash
The crash appears as an issue in the console. The console counts release builds by default, and a build you run from Xcode is a debug build, so set the bar’sbuild: chip to Debug (or
All) to see it; an empty page also offers the switch. You can also read it with the
read API and a project token, issued by the console:
6. Upload symbols
Symbols belong to one build: a crash is symbolicated with the dSYM of the exact build that crashed. Upload them with theapsio CLI and your project’s
upload token. For a build you archive (Product → Archive),
upload the archive:
Next
- The iOS SDK: users, logs, errors, spans and SwiftUI screens.
- Sessions and release health: what crash-free means.
- Remove the test button before you ship.