How to integrate fabric with Xcode 6.2

I want to know how to implement a fabric with Xcode.am installed in the layout, but could not complete the process. It is still working to continue building your project, I also built my project. Anyone helped me

+5
source share
2 answers

This is how I applied Febric-SDK to my analytics crash app

Hope this helps someone out there.

1.After registration → go to

https://fabric.io/downloads

2.Download the SDK for Xcode

enter image description here

3. Extract the downloaded zip file and install Fabric.

you can now see the menu icon on top of the Status Bar on your Mac.

Just login with the account on the screen above.

enter image description here

and install Crashlytics by clicking the Install button

enter image description here

4. Now this will guide you through a step that will help us add a script to Xcode

also it will give Script, copy and paste the text file to your Mac, we should use it later in the Xcode settings

here is the link.

5. How to add run script build phase

let's do it..

5.1. Go to Xcode project → Build phase →

enter image description here

5.2. in the upper left corner click "New start script Phase"

enter image description here

5.3. paste the script that you copied earlier

enter image description here

Good thing we're almost done !!

5.4. Now in the Febric menu, you will go to the drag fabric kit icon in your Xcode project, which will actually add the SDK to your project.

enter image description here

5.5. after you can see the SDK framework ( Fabric.framework, Crashlytics.framework ) added to the project, you need to configure the AppDelegate file

5.5.1 add import statements

to the file AppDelegate.m

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

5.5.2 now add "[Fabric with: @ [CrashlyticsKit]]; to the didFinishLaunchingWithOptions method

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //todo here [Fabric with:@[CrashlyticsKit]]; return YES; } 
  1. Here it is! you can go to the Crashlytics Dashboard to see the report after starting the debugging application.

go to → https://www.fabric.io/settings → click on the toolbar button

enter image description here

Hooray!!

+18
source

Try to exit the assistant and open it again. I believe that I had the same problem as you, she should pick up where she left off.

0
source

All Articles