TwitterKit 3.0.4 error CredStore - performQuery - Error copying matching creds


#1

Working with iOS 11 beta 7 & TwitterKit 3.0.4. Followed instructions on https://dev.twitter.com/twitterkit/ios/migrate-social-framework… but keep getting the following error :

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;
}
and after that :
Did encounter error sending Tweet: Error Domain=TWTRNetworkingErrorDomain Code=-1011 “Request failed: unauthorized (401)” UserInfo={NSLocalizedFailureReason=, TWTRNetworkingStatusCode=401, NSErrorFailingURLKey=https://api.twitter.com/1.1/statuses/update.json, NSLocalizedDescription=Request failed: unauthorized (401)}

Can anyone please help solving this issue ?
Thanks in advance. Frank


#2

Getting same error here. Were you able to find a solution?


#3

Actually, its because Twitter.sharedInstance().sessionStore.session()?.userID returned nil. i.e.) I just had to make sure the user was successfully logged into Twitter.