【发布时间】:2016-03-18 18:49:01
【问题描述】:
我正在尝试导入我的桥接头文件但它不起作用,我已经使用了这里介绍的所有解决方案Failed to import bridging header
但没有什么对我有用。
我正在尝试从 github 导入这个库,有人可以帮忙
https://github.com/nst/STTwitter
这是错误
^
/Users/aftheer/Downloads/STTwitter-master 5/STTwitter/STHTTPRequest+STTwitter.h:9:9: error: 'STHTTPRequest.h' file not found
#import "STHTTPRequest.h"
^
<unknown>:0: error: failed to import bridging header '/Users/aftheer/Desktop/twitterApp/twitterApp/twitterApp-Bridging-Header.h'
【问题讨论】:
-
SSTwitter 使用 cocoapods 来安装它。你在工作区工作吗? (不是 xcodeproj)
-
我不使用 cocoapods
-
啊,好吧。看起来 STTwitter 库在您的下载文件夹中,而不是实际上在您的项目中。我会尝试从您的项目中删除引用,清理项目(产品>清理),将其拖回并将其复制到您的项目中。
-
很抱歉,我怎样才能删除引用?
-
在 Xcode 中右键单击它 > 删除 > 删除引用(不移动到垃圾箱)。
标签: swift bridging-header