【问题标题】:I am getting error that #import <TwitterKit/TwitterKit.h> not found in xcode我收到 #import <TwitterKit/TwitterKit.h> 在 xcode 中找不到的错误
【发布时间】:2018-06-03 18:32:42
【问题描述】:

我安装了这些 pod 文件。

pod 'TwitterKit'

pod 'TwitterCore'

当我尝试导入文件 i. e #import 显示未找到错误。

为什么它会提出任何想法?有什么问题或有什么待补充?

【问题讨论】:

  • 如果使用 Swift,您需要将其添加到您的 Objective-C 桥接头中。

标签: ios xcode twitter cocoapods twitterkit


【解决方案1】:

由于 3.3.0 版 TwitterKit 在 github 上有一个新家,installation page 声明您需要像这样导入:

#import &lt;TwitterKit/TWTRKit.h&gt;

【讨论】:

    【解决方案2】:

    使用@import TwitterKit 将其作为模块导入。

    【讨论】:

    • 它正在工作。我在关注 twitter 文档,他们在那里提到过。所以我从过去 2 天开始就被困住了,现在得到了解决方案。谢谢@Nikos
    • :-) 如果有效,请点赞并接受答案。
    【解决方案3】:

    在导入尝试清理和构建您的项目或重新启动 Xcode 之前,然后导入 Twitter。

    【讨论】:

      猜你喜欢
      • 2015-10-30
      • 1970-01-01
      • 2021-07-11
      • 1970-01-01
      • 2021-05-16
      • 2020-03-01
      • 2012-06-19
      • 1970-01-01
      • 2021-09-26
      相关资源
      最近更新 更多