Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics integration issue

I have trouble integrating Crashlytics into my project.

Having follow instruction on website. But soon after installing the Crashlytics mac app, add new build script, paste script, then I build my project to continue, then the app crashed.

Update: so back then, I forgot to initialize a Crashlytics instance in AppDelegate. It's totally my fault, not the service nor the client app (which is really really awesome by the way!). You can see answers below.

like image 387
Vinh Nguyen Avatar asked Jun 29 '13 09:06

Vinh Nguyen


People also ask

What happened to Crashlytics?

In January 2017, Crashlytics and Fabric were acquired by Google. In September 2018, Google announces that Fabric will be deprecated and developers should use Crashlytics via Firebase.

Why Crashlytics is integrated with your app?

Firebase Crashlytics is a real-time crash reporting tool. It helps by automatically collecting, analyzing, and organizing your crash reports. It also helps you understand which issues are most important, so you can priorities those first and keep your users happy.

Is Crashlytics deprecated?

Old versions of your app still using the Fabric Crashlytics SDK will not break once it's deprecated, however they will no longer submit crash reports. But it seems like it will just continue to work as per normal after this date until further notice. Just leave it the way it is.

Is Crashlytics GDPR compliant?

In fact, data transfers to Crashlytics are covered by a different safeguard - Google's certification under the EU-US Privacy Shield Framework. This means that, under the GDPR, it isn't necessary or appropriate to seek a user's consent to transfer their data outside of the EU for the purposes of using Crashlytics.


2 Answers

In the Build Phases of your target, click the + Add a Build Phase button in the bottom right and select Add Run Script. In the Crashlytics mac plugin, you should be given a run script to copy into this run script build phase. It will look like this:

./Crashlytics.framework/run <your api key>

Except your api key will be a 40 digit number provided by the plugin.

in your app delegate:

#import <Crashlytics/Crashlytics.h>

In didFinishLaunchingWithOptions write the following line to start your Crashlytics session.

[Crashlytics startWithAPIKey:<your api key>];

<your api key> is the same number in the run script.

like image 116
Patrick Goley Avatar answered Sep 20 '22 20:09

Patrick Goley


Crashlytics collect crashes only when app run NOT in debug mode.

Here is quote from Crashlytics Knowelege Base: 3. Then, make sure that a debugger is not connected. By default, Xcode will launch applications and attach a debugger. This will prevent the crash from reporting -- detach it!

http://support.crashlytics.com/knowledgebase/articles/92522-is-there-a-quick-way-to-force-a-crash-

like image 23
Vitalii Gozhenko Avatar answered Sep 24 '22 20:09

Vitalii Gozhenko