2015-12-01 38 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;