i want to know how to implement the fabric with Xcode.am installed the fabric in mac,but unable the complete the process.it's still running with to continue build your project,i have built my project also.Any one help me
Here is how I have implemented Febric-SDK into my app for crash analytics
Hope this will help someone out there.
1.After making signup —> go to
https://fabric.io/downloads
2.Download SDK for Xcode
3.Extract downloaded zip file and install Fabric.
now you can see Menu icon on top Status bar on your Mac.
Just login with register account on above screen.
and install Crashlytics by clicking Install button
4.Now it will guide you through step which help us to add script in Xcode
also it will give Script, Please copy and paste in text file on your mac, we need to use it later in Xcode settings
here is the reference link.
5.How to Add a Run Script Build Phase
let do it..
5.1. Go to Xcode project —> Build Phase —>
5.2. on left top corner click on “New Run Script Phase”
5.3. paste the script what you have copied earlier
Good we are almost done!!
5.4. Now in the Febric Menu go ahead you will guided for drag fabric kit icon to your Xcode project, which will actually add SDK to your project.
5.5. once you can see SDK frameworks (Fabric.framework, Crashlytics.framework) added to project, you need to configure AppDelegate file
5.5.1 add import statements
into AppDelegate.m file
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
5.5.2 now add “[Fabric with:@[CrashlyticsKit]];” into didFinishLaunchingWithOptions method
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//todo here
[Fabric with:@[CrashlyticsKit]];
return YES;
}
go to —> https://www.fabric.io/settings —> click on Dashboard button
Cheers!!
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