Created
January 25, 2024 17:25
-
-
Save sowenjub/808717800455bd153a47783a353ec091 to your computer and use it in GitHub Desktop.
Uploading dSYMs files to Sentry with Xcode Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Don't forget to run 'chmod +x ci_post_xcodebuild.sh' from the terminal after adding this file to your project | |
set -e | |
if [[ -n $CI_ARCHIVE_PATH ]]; | |
then | |
# Install Sentry CLI into the current directory ($CI_PRIMARY_REPOSITORY_PATH/ci_scripts) | |
export INSTALL_DIR=$PWD | |
if [[ $(command -v sentry-cli) == "" ]]; then | |
curl -sL https://sentry.io/get-cli/ | bash | |
fi | |
# Upload dSYMs | |
$CI_PRIMARY_REPOSITORY_PATH/ci_scripts/sentry-cli --auth-token $SENTRY_AUTH_TOKEN upload-dif --org $SENTRY_ORG --project $SENTRY_PROJECT $CI_ARCHIVE_PATH | |
else | |
echo "Archive path isn't available. Unable to run dSYMs uploading script." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More details here: https://sowenjub.me/writes/how-to-upload-dsyms-files-to-sentry-with-xcode-cloud/