Fabric.io实现(AppDelegate)

Viv*_*ive 8 iphone objective-c ios fabric.io

我正在尝试将Fabric实现到我的应用程序中.问题是,应用程序无法正常工作,我不知道在AppDelegate中放置了什么代码.我在网上找不到任何有关我应该在那里实施的信息.任何人都可以给我一个提示,我应该在AppDelegate中实现哪些功能?

Fabric截图

DBo*_*yer 5

假设你使用的构建脚本设置面料,它会投放到适当的consumerKey,并consumerSecret在你的项目的Info.plist.

您可以使用以下方法初始化Fabric:

迅速

Fabric.with(Twitter(), Crashlytics()) // Add whichever Kits you are using
Run Code Online (Sandbox Code Playgroud)

的ObjectiveC

[Fabric with:@[[Twitter sharedInstance]]] // Add whichever Kits you are using
Run Code Online (Sandbox Code Playgroud)

仔细检查您的plist是否包含Fabric条目,并将此行代码添加到您的application:didFinishingLaunchWithOptions:方法中.

https://dev.twitter.com/twitter-kit/ios/configure