Search code examples
twitterswift3crashlyticstwitter-fabric

Cannot init both Twitter and Crashlytics with Fabric


After migrating to swift 3, the initialisation i used for both crashlytics and twitter (since only one call to fabric is permitted) is not working anymore.

The method given the documentation doesn't work either (it didn't work in swift 2 either by the way). What is the proper way to initialize this?

I tried all the methods listed here : How to init Fabric properly in Swift and the init i used before was this :

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

But none are working for swift 3.

Error message : Calling Twitter.start is not supported


Solution

  • FIY since twitter kit 3, it is separated from fabric so we now need to instantiate both separatly.