Upload dSYM files automatically to Crashlytics
dSYM files turn machine language into human readable language. After adding the dSYM files, the crashes in Crashlytics will appear with file names and function names instead of incomprehensible strings.
You can upload the dSYM files to Crashlytics manually. So each time before submitting, you can run some scripts.
Or, you can upload the same scripts to your project folder and tell Xcode to run these automatically as part of the build phase.
For either option, you need the same scripts. They are run
and upload
. There's no obvious .exe
after the file name on mac.
I'm not sure where to find these. But when you have them, copy them into your app folder structure somewhere.
Ours are located in a folder called "SupportingFiles", along with the Info.plist
, input.xcfilelist
etc.
Then head over to the project > your main app target > Build Phase. Press + to add "Run Script".
Inside, type the path to the run script. If you have put it in the same place as me:
# Upload dSYM files to Crashlytics
./SupportingFiles/run <insert key here>
You also need a secret key that will be a long string to characters. That links it to Crashlytics and I assume performs authentication.