iOS:“ [Fabric]”似乎“ Crashlytics”不是有效的面料套件 [英] iOS: '[Fabric] It appears that "Crashlytics" is not a valid Fabric Kit
本文介绍了iOS:“ [Fabric]”似乎“ Crashlytics”不是有效的面料套件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经更新了 Crashlytics
,但在启动时仍然出现此错误:
I have updated the Crashlytics
but still I am getting this error on launch:
错误:***由于未捕获的异常'FABException',
终止了应用程序:'[Fabric]似乎 Crashlytics不是有效的Fabric
套件。请确保仅将面料套件传递给[Fabric with:]。'
Error: *** Terminating app due to uncaught exception 'FABException', reason: '[Fabric] It appears that "Crashlytics" is not a valid Fabric Kit. Please make sure you only pass Fabric Kits to [Fabric with:].'
这是我的代码 :
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
Fabric.with([Crashlytics.self])
return true
}
推荐答案
使用此行代码。经过长时间的尝试,我发现此解决方案xcode7,swift2 / 3
use this line of code. after a long try i found this solution xcode7, swift2/3
Fabric.with([Crashlytics()])
我希望它将解决您的错误。
i hope it will fix your bug.
这篇关于iOS:“ [Fabric]”似乎“ Crashlytics”不是有效的面料套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文