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....
Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.
You can also use Crashlytics below features to provide more information. Logging Non-Fatal Events: try { myMethodThatThrows(); } catch (Exception e) { Crashlytics. logException(e); // handle your exception here! }
Crashlytics synthesizes an avalanche of crashes into a manageable list of issues, provides contextual information, and highlights the severity and prevalence of crashes so you can pinpoint the root cause faster.
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.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With