swift 依赖 cocoapods obj-c 的项目
swift project with cocoapods obj-c dependence
我正在制作一个简单的 swift 应用程序,其中 link 是一个 obj-c cocoapod 依赖项 SFRoundProgressCounterView。我的 Podfile 包含 use_frameworks!
。安装 pods 并构建项目后,出现 2 个错误:
SFCounterLabel.h:12:9: 'TTTAttributedLabel.h' file not found
Could not build Objective-C module 'SFRoundProgressCounterView'
我检查了 SFCounterLabel.h,它是 SFRoundProgressCounterView 的一部分 import TTTAttributedLabel:
#import "TTTAttributedLabel.h"
我尝试将 MyProjectName-Bridging-Header.h 与
#导入"TTTAttributedLabel.h"
但没有理由。
我的 Cocoapods 版本是 0.39.0。
我应该如何 link SFRoundProgressCounterView 正确地应用到我的 swift 项目?
看起来SFCounterLabel.h SFRoundProgressCounterView 需要使用支持框架的导入语法。 #import <TTTAttributedLabel/TTTattributedLabel.h>
或 @import TTTAttributedLabel.TTTAttributedLabel;
我正在制作一个简单的 swift 应用程序,其中 link 是一个 obj-c cocoapod 依赖项 SFRoundProgressCounterView。我的 Podfile 包含 use_frameworks!
。安装 pods 并构建项目后,出现 2 个错误:
SFCounterLabel.h:12:9: 'TTTAttributedLabel.h' file not found
Could not build Objective-C module 'SFRoundProgressCounterView'
我检查了 SFCounterLabel.h,它是 SFRoundProgressCounterView 的一部分 import TTTAttributedLabel:
#import "TTTAttributedLabel.h"
我尝试将 MyProjectName-Bridging-Header.h 与 #导入"TTTAttributedLabel.h" 但没有理由。
我的 Cocoapods 版本是 0.39.0。
我应该如何 link SFRoundProgressCounterView 正确地应用到我的 swift 项目?
看起来SFCounterLabel.h SFRoundProgressCounterView 需要使用支持框架的导入语法。 #import <TTTAttributedLabel/TTTattributedLabel.h>
或 @import TTTAttributedLabel.TTTAttributedLabel;