Debugging symbols
LastCrash needs your project's debug symbol (dSYM) files to generate human readable crash reports. Follow the steps below to automatically upload your app's symbol files on release builds.
- Open your project's Xcode workspace, then select its project file in the left navigator.
- From the TARGETS list, select your main build target.
- Click the Build Settings tab, then complete the following steps so that Xcode produces dSYMs for your builds.
- Click All, then search for debug information format.
- Set Debug Information Format to DWARF with dSYM File for all your build types.
- Click the Build Phases tab, then complete the following steps so that Xcode can process your dSYMs and upload the files.
- Click add > New Run Script Phase.
- Make sure this new Run Script phase is your project's last build phase.
- Expand the Run Script section and replace
LASTCRASH_API_KEY
with your project's API key:- Shell
/bin/sh
- Script
$PROJECT_DIR/LastCrash.xcframework/lastcrash-run LASTCRASH_API_KEY
- Input files section
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist
$PROJECT_DIR/LastCrash.xcframework/lastcrash-run
- Shell