How to integrate fabric with Xcode 6.2

2019-06-18 15:30发布

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

2条回答
SAY GOODBYE
2楼-- · 2019-06-18 15:55

Try quitting the helper and reopening it. I believe I had the same issue as you, it should pick up where it left off.

查看更多
姐就是有狂的资本
3楼-- · 2019-06-18 16:03

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

查看更多
登录 后发表回答