Crashlytics not sending crash Reports to my Fabric

2019-06-22 12:02发布

问题:

In My app previously used fabric for twitter integration purpose. Now i want crashlytics .so i followed as fabric guided me added framework to my project

#import "AppDelegate.h"
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
      [Fabric with:@[TwitterKit, CrashlyticsKit]];  
}

later i added run script in Build Phase also checked with Force crash but i didn't get any crash report to my Fabric dash board ...Please Guide me Where i did mistake....

回答1:

Finally today I found solution, to get report with dubug mode make change like in below image.

and follow these instructions ,like I have also post here.



回答2:

Where did you wrote code for Force crash?

You should give the code to Force crash in another class, not in AppDelegate.

You should run the app from simulator or device, but not from XCode.(once run the build from Xcode, stop it and then from simulator open the app.)



回答3:

Also make sure that "Top Builds" filter is removed.



回答4:

From Xcode 7. By default in build setting -> enable bitcode is set to YES. You need to make it NO. And then check.

This works for me. As per my Reading app need to send the crash reports to fabric. But if the Enable bitcode is YES then you need to download the DYSM file from Xcode and upload it manually to fabric.

check Advanced Fabric setting

Also please check more help