Used to automatically upload dSYM bundles to Bugfender.
Our upload script is meant to be executed locally from the Xcode build environment. It may not yet function in Xcode Cloud.
-
Open project settings.
-
Select your main target from the TARGETS list on the left.
-
Select the Build Settings tab.
-
Ensure that
Debug Information Format
is set toDWARF with dSYM File
.
-
Open project settings.
-
Select your main target from the TARGETS list on the left.
-
Select the Build Settings tab, find Build Options > User Script Sandboxing and set it to No.
-
Select the Build Phases tab.
-
Open menu under the
+
sign and select New Run Script Phase. -
Configure the new Run Script as follows:
-
If you are using CocoaPods:
${PODS_ROOT}/BugfenderSDK/upload-symbols.sh <bugfender_symbolication_token>
-
If you using SPM:
BUGFENDER_SYMBOLICATION_URL=https://dashboard.bugfender.com/ ${BUILD_DIR%Build/*}SourcePackages/checkouts/BugfenderSDK-iOS/xcode-upload-symbols/upload-symbols.sh <bugfender_symbolication_token>
-
If you copied the script manually:
<path_to_the_script>/upload-symbols.sh <bugfender_symbolication_token>
-
The bugfender symbolication token can be obtained from the Bugfender Dashboard and needs to be specified either as a first argument to the script or setting the
BUGFENDER_SYMBOLICATION_TOKEN
environment variable.
-
-
Under the "Input Files" section, add the following path. This will provide access to the debug symbols to our upload script.
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
-
Done! Here is a screenshot of what the complete settings would look like if you were using SPM.