Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate fabric with Xcode 6.2

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

like image 785
Nanda Avatar asked Jun 26 '15 06:06

Nanda


1 Answers

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

enter image description here

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.

enter image description here

and install Crashlytics by clicking Install button

enter image description here

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 —>

enter image description here

5.2. on left top corner click on “New Run Script Phase”

enter image description here

5.3. paste the script what you have copied earlier

enter image description here

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.

enter image description here

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;
}
  1. Thats it!! you can goto Crashlytics Dashboard to see the report once you start debugging application

go to —> https://www.fabric.io/settings —> click on Dashboard button

enter image description here

Cheers!!

like image 97
swiftBoy Avatar answered Nov 17 '22 18:11

swiftBoy