“Show Timelines” Swift example failing with “Cannot override 'init' which has been marked unavailable”



I’m implementing the Twitter Fabric iOS Show Timelines example as described in the Twitter documentation: https://dev.twitter.com/twitter-kit/ios/show-timelines

(Note: I’m using the Guest authentication sample code in my app delegate.)

However, I’m getting a build error:

Cannot override ‘init’ which has been marked unavailable

…on the “required init” line below.

I’ve seen others report this in the forums but the resolution is unclear to me. I appreciate any help you can provide this newbie. Thanks in advance.

import UIKit
import TwitterKit

class ViewController: TWTRTimelineViewController {

    convenience init() {
        let client = Twitter.sharedInstance().APIClient
        let dataSource = TWTRUserTimelineDataSource(screenName: "fabric", APIClient: client)

        self.init(dataSource: dataSource)

    override required init(dataSource: TWTRTimelineDataSource) {
        super.init(dataSource: dataSource)

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")


This is a bug; we will ship a fix ASAP.


Thanks val. What’s the best way to stay in touch so I know when this is fixed?


I’ll post in this thread as soon as the fix is available.


Hi val, is there a suggested workaround in the meantime?


The team shipped a fix, so you should be good to go!

closed #7