推特套件错误

Twitter Kit error

所以我使用的是来自 Twitter 而不是 fabric 的 TwitterKIT,我遇到了一个错误。这是代码。我还按照 Twitter

上准确记录的 TwitterKIT 安装进行了操作

[TwitterKit] Couldn't load Tweets from TWTRTimelineViewController: Error Domain=TwitterAPIErrorDomain Code=99 "Request failed: forbidden (403)" UserInfo={NSLocalizedFailureReason=Twitter API error : Unable to verify your credentials (code 99), TWTRNetworkingStatusCode=403, NSErrorFailingURLKey=https://api.twitter.com/oauth2/token, NSLocalizedDescription=Request failed: forbidden (403)}

class TimeView: TWTRTimelineViewController{

@IBOutlet var Menu: UIBarButtonItem!
override func viewDidLoad() {
    self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
    Menu.target = self.revealViewController()
    Menu.action = #selector(SWRevealViewController.revealToggle(_:))
    let client = TWTRAPIClient.withCurrentUser()
    self.dataSource = TWTRUserTimelineDataSource(screenName: "PortCreditSS", apiClient:client)
    self.showTweetActions = true
    }
}

没关系,我修好了。重新生成密钥并粘贴这些修复了问题