gpt4 book ai didi

ios - 神秘的 TwitterKit 崩溃

转载 作者:可可西里 更新时间:2023-11-01 04:20:10 25 4
gpt4 key购买 nike

我在通过 Fabric 使用 TwitterKit 时看到了一个相当神秘的崩溃。

我的应用程序在这一行崩溃:

Fabric.with([Crashlytics.self, Twitter.self])

说:

[Fabric] Please upgrade to the latest version of "Twitter"
[Crashlytics] Version 3.8.4 (121)
Calling Twitter.start is not supported.

我按照文档的指示集成了 TwitterKit,将 key 和 url 方案添加到我的 Info.plist 中,但我不明白为什么 Twitter 突然崩溃了。

最佳答案

带有 TwitterKit 3+ 的新工作版本

Fabric.with([Crashlytics.self]) 
Twitter.sharedInstance().start(withConsumerKey: "key", consumerSecret: "secret")

新建 Pod 文件

pod 'Fabric'
pod 'Crashlytics'
pod 'TwitterKit'

旧版本:

Fabric.with([Crashlytics.self, Twitter.self])

关于ios - 神秘的 TwitterKit 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44237682/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com