Install the Crashlytics app on your mac. Crashlytics is then added as an icon (broken gear wheel) in the top menu bar on the mac.
Use its options to add it to an xcode project. It shows you how to add a run script build phase to the project and then add the necessaries to the source code (it's a brilliant tool!) – just follow its prompts.