How to integrate fabric with Xcode 6.2

六眼飞鱼酱① 提交于 2019-12-23 09:03:20

问题


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


回答1:


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;
}
  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

Cheers!!




回答2:


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



来源:https://stackoverflow.com/questions/31065965/how-to-integrate-fabric-with-xcode-6-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!