Help! Log In button doesn't work after TwitterKit 3 upgrade


It’s hanging after logging in, showing this:


Yeah, the doc was not updated, you need to add this to your app delegate, so your app know how to handle the Twitter SDK callback.

    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        return Twitter.sharedInstance().application(app, open: url, options: options)

But please Twitter, update the doc… it’ll avoid future headache.


Thank you!


Thanks for the report.

There is a note in the Prerequisites section of of the Log In docs to set up this application:open:options: method.

It links to the full redirect URL docs here:

We will make sure to update our docs to make this more clear. Sorry for the frustration.



I’ve got same problem but I have this method implemented.

Twitter.sharedInstance().application() returns false and nothing happens, viewcontroller stay opened.


Hi, having same issue here, same of @namex44. I’ve implemented all and - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options; is returning false always. The ap gets stuck on the screen mentioned above. Do we have a solution for this?

Using TwitterCore (3.1.0)
Using TwitterKit (3.3.0)
Twitter App 7.14


I’m not using the button, i’m using - (void)logInWithViewController:(nullable UIViewController *)viewController completion:(TWTRLogInCompletion)completion;


I can just advice right now to use TwitterKit below 3.3.0 - which seems a bit too buggy at the moment. I’m going back.