[TwitterKit] No matching scheme found



I’ve tried this with iOS 10.3 and 11.2, with both a device and a simulator. This is my code:

[[Twitter sharedInstance] logInWithMethods:TWTRLoginMethodWebBasedForceLogin completion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {
    if (session != nil) {
        // show something to the user here...

When the method above is called, the Safari/SafariViewController is never presented neither the completion block is called. All I get is the following log:

2017-12-05 12:01:09.663202-0500 app[2327:958637] [TwitterKit] No matching scheme found.
2017-12-05 12:01:09.737497-0500 app[2327:963601] CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
“m_Limit” = “m_LimitAll”;
ptcl = htps;
“r_Attributes” = 1;
sdmn = “https://api.twitter.com”;
srvr = “api.twitter.com”;
sync = syna;
2017-12-05 12:01:09.792162-0500 app[2327:958637] [TwitterKit] did encounter error with message “Error obtaining user auth token.”: Error Domain=TWTRLogInErrorDomain Code=-1 “{“errors”:[{“code”:32,“message”:“Could not authenticate you.”}]}” UserInfo={NSLocalizedDescription={“errors”:[{“code”:32,“message”:“Could not authenticate you.”}]}}

I’ve followed this tutorial https://dev.twitter.com/twitterkit/ios/migrate-social-framework and it should be a non brainer, instead this is taking dozens of hours and no progress. No answers online as well.

Any help would be much appreciated.