Fabric Crashlytics“嗯,好像您的套件没有激活”。在验证安装时 [英] Fabric Crashlytics "Hmmm, seems like your kit isn't activating" whilst verifying install
问题描述
我目前正在等待新应用的Beta测试。我之所以选择Fabric是因为它的评论很棒。但是,在按照在Xcode中运行应用程序的说明进行操作之后,我目前在Fabric Controller上收到嗯,好像您的套件未激活消息。我环顾四周,但发现的解决方案没有任何改变。
I am currently awaiting beta testing for my new app. I chose Fabric due to it's great reviews. However i am current getting the "Hmmm, seems like your kit isn't activating" message on the Fabric Controller after following the instruction to run the app in Xcode. I have looked around but the solutions i have found haven't made any difference.
这是我得到的消息:
这是我的运行脚本:
这是我的信息。 plist:
< img src = https://i.stack.imgur.com/2qoaL.png alt =在此处输入图片描述>
最后,这是我在应用程序委托中的代码:
import UIKit
import Fabric
import Crashlytics
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
Fabric.with([Crashlytics.self])
return true
}
有人知道如何解决此错误吗?
预先感谢
推荐答案
感谢所有帮助过的人!我经过所有代码后才发现问题。 Swift 3使App Delegate有点混乱,因为我不得不将代码更改为私有函数
或向其中添加 @nonobjc
静默警告
Thank's to everyone that has helped! i found the issue after going through all of my code. Swift 3 makes the App Delegate slightly confusing as i had to change my code to a private func
or add @nonobjc
to silence the warning
我的代码原来是这样的:
my code was originally this:
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
但这是私有函数
它不允许与Fabric控制器连接
but as it was a private func
it wasn't allowing connection with the Fabric controller
通过将其更改为:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
这篇关于Fabric Crashlytics“嗯,好像您的套件没有激活”。在验证安装时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!