更快的 Twitter 设置

Swifter Twitter Set Up

我正在尝试将 Swifter 添加到我的 Xcode Swift 项目中,但我一直收到 No such Module 错误。我关注了 instructions to download them using pods. But now I keep getting the error when I try to import SwifteriOS. I have also tried manually adding the framework to both the Embedded Binaries and Linked Frameworks and Libraries found on the Target -> General Page.

经过更多尝试,import SwifteriOS 似乎已重命名为 import Swifter。这消除了我遇到的任何编译错误。我还最终从上面照片的所有三个位置删除了 Swifter.framework,没有任何问题。
我认为文档和示例项目可能有点过时了!希望这对其他人有帮助!

有两个 Swifter pods!!!将这个额外的部分添加到您的播客文件中很重要:

pod 'Swifter' , :git => 'https://github.com/mattdonnelly/Swifter.git'

要了解如何设置其余部分,我已经通过更新(2021 年)回答了问题