如何将Fabric与Xcode 6.2集成 [英] How to integrate fabric with Xcode 6.2

查看:96
本文介绍了如何将Fabric与Xcode 6.2集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用Xcode来实现该结构。am在Mac中安装了该结构,但是无法完成该过程。它仍在运行以继续构建您的项目,我也已经构建了我的项目。有人帮助我

解决方案


这是我在我的计算机中实现 Febric-SDK 的方式用于崩溃
分析的应用


希望这会帮助到那里的人。


1。注册后—>



3。解压缩下载的zip文件并安装Fabric。


现在您可以在Mac的状态栏顶部看到菜单图标。


只需登录,并在上面的屏幕上注册帐户即可。



并通过单击安装按钮



4现在,它将引导您逐步完成我们要在Xcode中添加脚本


还要 它将提供脚本,请在Mac上复制并粘贴文本文件,稍后我们需要在Xcode设置中使用它


这是参考文献


5.2。在左上角,点击新运行脚本阶段



5.3。将脚本粘贴您之前复制的内容



好,我们快完成了! / p>

5.4。现在,在 Febric菜单中,将继续指导您将拖动结构工具包图标拖到您的Xcode项目中,这实际上会将SDK添加到您的项目中。



5.5。一旦您看到SDK框架( Fabric.framework,Crashlytics.framework )已添加到项目中,就需要配置AppDelegate文件


5.5.1添加导入语句


进入AppDelegate.m文件

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

5.5.2现在添加 [Fabric with:@ [CrashlyticsKit]];进入didFinishLaunchingWithOptions方法

 -(BOOL)应用程序:(UIApplication *)应用程序didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{
//在这里执行


[Fabric with:@ [CrashlyticsKit]];

返回是;
}



  1. 就这样!您可以在开始调试应用程序后转到Crashlytics控制台查看报告。

转到—>


干杯!


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

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

这篇关于如何将Fabric与Xcode 6.2集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆