Uploading iOS Debug Symbols
As part of the build process, upload the debug symbols to your observability platform. This is a critical step to ensure that you can debug your application in production. For more information, see Uploading Debug Symbols.
Sentry
To set up uploading debug symbols to Sentry, follow the Sentry documentation and add the following steps to your workflow:
- name: Install sentry-cli
run: curl -sL https://sentry.io/get-cli/ | bash
- name: Find dSYM files
run: echo DSYM_PATH=$(find ~/Library/Developer/Xcode/DerivedData -name "*.dSYM") >> $GITHUB_ENV
- name: Upload dSYM files to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: sentry-cli --auth-token $SENTRY_AUTH_TOKEN upload-dif --org [ORG_SLUG] --project [PROJECT_SLUG] $DSYM_PATH
info
- Set up a SENTRY_AUTH_TOKEN and store it as a secret in your repository. For more information, see Creating and storing encrypted secrets.
- Replace
[ORG_SLUG]
and[PROJECT_SLUG]
with your Sentry organization and project slugs.