In XCode:
Select th sentry-cocoa root folder to open the app profile:
-
Set a
SENTRY_AUTH_TOKEN
in 'Run Script' build phase. -
sentry-cli must be installed at /usr/local/bin
-
Click the Run/play button targeting iPhone 11
-
Click on Stop to disconnect the debugger from the app in the simulator
In Simulator, Launch the sentry-cocoa app
The demo app enriches every event with: Custom context, breadcrumbs, tags, user IP, extra data.
- From the Simulator explicitly send an event to Sentry by clicking
- Handled Exception
- Capture Message
- For Native crashes click:
- Crash Application
- UnHandled Exception
- Release:
- Note that the cocoa-sdk automatically creates a Release by using the build version + dist as described in the Android SDK Release Version Format
- The SDK then automatically tags every event with that release version id (i.e. there is no need to explicitly set the release version ID, unless you're explicitly setting a custom release name)
-
Run Scripts:
Upload the Debug Symbols to the target project and associate the commits to the release object.