如何将结构与 Xcode 6.2 集成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31065965/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:22:33  来源:igfitidea点击:

How to integrate fabric with Xcode 6.2

iosobjective-cxcodecrashlytics

提问by Nanda

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

我想知道如何使用 Xcode 实现结构

回答by swiftBoy

Here is how I have implemented Febric-SDKinto my app for crash analytics

这是我如何在我的应用程序中实施Febric-SDK以进行崩溃分析

Hope this will help someone out there.

希望这会帮助那里的人。

1.After making signup —> go to?

1.注册后——>去?

https://fabric.io/downloads

https://fabric.io/downloads

2.Download SDK for Xcode

2.下载XcodeSDK

enter image description here

在此处输入图片说明

3.Extract downloaded zip file and install Fabric.

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

now you can see Menu icon on top Status bar on your Mac.

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

Just loginwith register account on above screen.

只需在上面的屏幕上使用注册帐户登录即可

enter image description here

在此处输入图片说明

and install Crashlytics by clicking Installbutton

并通过单击安装按钮安装 Crashlytics

enter image description here

在此处输入图片说明

4.Now it will guide you through step which help us to add script in Xcode

4.现在它将指导您完成帮助我们在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

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

here is the reference link.

这是参考链接

5.How to Add a Run Script Build Phase

5.如何添加运行脚本构建阶段

let do it..

开始干吧..

5.1. Go to Xcode project —> Build Phase —>

5.1. 转到 Xcode 项目 —> 构建阶段 —>

enter image description here

在此处输入图片说明

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

5.2. 在左上角点击“New Run Script Phase”

enter image description here

在此处输入图片说明

5.3. paste the script what you have copied earlier

5.3. 粘贴您之前复制的脚本

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.

5.4. 现在,在 Febric 菜单中,您将引导将 Fabric 套件图标拖到您的 Xcode 项目中,这实际上会将 SDK 添加到您的项目中。

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. 一旦您可以看到添加到项目中的SDK 框架(Fabric.framework、 Crashlytics.framework),您需要配置 AppDelegate 文件

5.5.1 add import statements

5.5.1 添加导入语句

into AppDelegate.m file

进入 AppDelegate.m 文件

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

5.5.2 now add “[Fabric with:@[CrashlyticsKit]];” into didFinishLaunchingWithOptions method

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

- (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
  1. 就是这样!!开始调试应用程序后,您可以转到 Crashlytics Dashboard 查看报告

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

转到 —> https://www.fabric.io/settings—> 单击仪表板按钮

enter image description here

在此处输入图片说明

Cheers!!

干杯!!

回答by Nanda

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

尝试退出助手并重新打开它。我相信我和你有同样的问题,它应该从它停止的地方开始。