xcode 如何使用 iOS 手动配置 Crashlytics?- Fabric.io 魔法不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29708799/
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
How to configure Crashlytics with iOS manually? - Fabric.io magic doesn't work
提问by swbandit
I'm using Xcode 6.3. Just downloaded Fabric.io and I'm trying to install Crashlytics to one of my apps.
我正在使用 Xcode 6.3。刚刚下载了 Fabric.io,我正在尝试将 Crashlytics 安装到我的一个应用程序中。
I've added the build phase script and ran the Build as it asked me to.
我已经添加了构建阶段脚本并按照它的要求运行了构建。
Then I dragged the SDKs folder into the Project Navigator and clicked on the Finish button. I now see Fabric.framework
and Crashlytics.framework
in my project.
然后我将 SDKs 文件夹拖入 Project Navigator 并单击 Finish 按钮。我现在在我的项目中看到Fabric.framework
和Crashlytics.framework
。
However, the Fabric app doesn't see that I've done the last step. It's still asking me to install the SDK Kits.
但是,Fabric 应用程序没有看到我已经完成了最后一步。它仍然要求我安装 SDK 套件。
How do I proceed?
我该如何进行?
Thanks
谢谢
回答by David Wong
In your app delegate did you do: Swift:
在你的应用程序委托中你做了什么:Swift:
import Fabric
import Crashlytics
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
...
Fabric.with([Crashlytics()])
...
}
Obj-C:
对象-C:
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Fabric with:@[CrashlyticsKit]];
...
}
回答by HusseinB
Well the Question's author solved his problem by adding the Target. I had the same problem while trying to add Fabric to an iOS 11 app on xCode 9. I solved the problem by adding the Crashlytics and Fabric frameworks in Generalunder the Linked Frameworks and Libraries
那么问题的作者通过添加目标解决了他的问题。我有同样的问题,而试图面料添加到9的Xcode在iOS应用11我通过添加Crashlytics和Fabric架构中解决了这个问题一般下的链接框架和库