2015-12-01 37 views
1

我正在做一个简单的快速应用程序链接一个obj c cocoapod依赖SFRoundProgressCounterView。我的Podfile包含use_frameworks!。安装吊舱和建设项目后,我得到2个错误:快速项目与cocoapods obj c依赖

SFCounterLabel.h:12:9:未找到

'TTTAttributedLabel.h' 文件

无法建立的Objective-C模块 'SFRoundProgressCounterView'

我检查了SFCounterLabel.h这是SFRoundProgressCounterView进口TTTAttributedLabel的一部分:

#import "TTTAttributedLabel.h" 

我试着使用MyProjectName-Bridging-Header.h与 #import“TTTAttributedLabel.h” 但没有理由。

我的Cocoapods版本是0.39.0。

我应该如何正确地将SFRoundProgressCounterView链接到我的swift项目?

回答

3

看起来像在SFCounterLabel.h SFRoundProgressCounterView需要使用支持框架的导入语法。 #import <TTTAttributedLabel/TTTattributedLabel.h>@import TTTAttributedLabel.TTTAttributedLabel;