可可豆荚与Swift 1.2桥接头comples,但ViewController无法找到类型

时间:2015-04-17 18:04:06

标签: ios swift

我目前正在迁移到Swift 1.2,目前正在使用cocoapods中的use_frameworks!标志来容纳Alamofire。 Pod安装正确,编译器抱怨桥接头无法找到声明为的标头:

#import "ThirdPartyLibraryClass.h"

所以我更新到了

#import <ThirdPartyLibraryClass/ThirdPartyLibraryClass.h>

编译器停止抱怨,但在构建时无法找到类型

1 个答案:

答案 0 :(得分:1)

试试这个:

选择您的项目,请转到:

BuildSettings - searchPath - 用户标题搜索路径:

enter image description here

现在为调试和/或发布输入此值: *“Pods / ”***