【发布时间】:2015-09-21 04:00:10
【问题描述】:
运行 CannonBall 时出现此错误:app here
'[Fabric] Info.plist 键“Fabric”的值必须是 NSDictionary。'
Appdelegate.swift:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
let welcome = "Welcome to Cannonball! Please onboard with the Fabric Mac app. Check the instructions in the README file."
//assert(NSBundle.mainBundle().objectForInfoDictionaryKey("Fabric") != nil, welcome)
Fabric.with([Crashlytics(), Twitter(), Digits(), MoPub()])//error here
if Twitter.sharedInstance().session() == nil && Digits.sharedInstance().session() == nil {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let signInViewController: AnyObject! = storyboard.instantiateViewControllerWithIdentifier("SignInViewController")
window?.rootViewController = signInViewController as? UIViewController
}
return true
}
我得到的建议是“您的 info.plist 中缺少 Fabric APIKey”。 但我在 info.plist 中找不到 Fabric 密钥。
Info.plist:
【问题讨论】:
-
是的,info.plist 中必须有一个带有 api 键的 Fabric 值
-
好的。如何获取consumerKey和consumerSecret of Digits?
-
你注册fabric了吗??/
标签: ios swift twitter-fabric twitter-digits