Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mysterious TwitterKit crash

I'm seeing a rather mysterious crash while using TwitterKit through Fabric.

My application crashes on this line:

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

saying:

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

I integrated TwitterKit just as the docs instructed, adding keys and url schemes to my Info.plist but I can't figure out why Twitter is all the sudden crashing.

like image 631
barndog Avatar asked May 29 '17 08:05

barndog


1 Answers

New working version with TwitterKit 3+

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

New Pod File

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

Old version:

Fabric.with([Crashlytics.self, Twitter.self])
like image 191
fatihyildizhan Avatar answered Oct 31 '22 21:10

fatihyildizhan