1. Get an app key
Each app in a project has its own key, for examplea-…. Find it in the console under
Settings → Apps. 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 the main branch, 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. 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.