4

我的 pod 看起来像这样

platform :ios, '8.1'

pod 'Masonry'
pod 'Parse'
pod 'SSKeychain'
pod 'Reachability'

当我添加“pod Charts”时,出现这样的错误

[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: Charts

如果我将 podfile 更新为此:

platform :ios, '8.1'
use_frameworks!

pod 'Masonry'
pod 'Parse'
pod 'SSKeychain'
pod 'Reachability'
pod 'Charts'

它弄乱了项目,SSKeychain 显示了无意义的错误,例如重复的接口和枚举定义。

我应该做更多的事情来支持 Swift pod 框架吗?或者我必须更新项目以以某种方式删除那些开源文件(SSKeychain 等)?

4

1 回答 1

0

也许您应该删除给定 pod 的缓存,或者完全清除缓存。请按照pod cache clean做

pod cache clean [NAME]

删除给定 pod 的缓存,或完全清除缓存。

如果请求的 pod 的不同版本有多个缓存,系统会询问您要清理哪一个。用来--all清洁它们。

如果不给 podNAME,则需要指定--allflag(这是为了避免错误地清理所有缓存)。

选项:

- 全部

无需询问即可删除所有缓存的 pod。

继承选项:

- 沉默的

什么都不显示。

--详细

显示更多调试信息。

--no-ansi

显示不带 ANSI 代码的输出。

- 帮助

显示指定命令的帮助横幅。

希望对您有所帮助。

于 2016-08-11T15:22:10.713 回答