IOS 使用 swift 3.0 编译的图表模块无法在 Swift 2.3 中导入
IOS Charts Module compiled with swift 3.0 cannot be imported in Swift 2.3
我正在做一个用 swift 2.3 编码的项目,我正在尝试在新的 UIViewController.When 中使用 IOS 图表(作者:danielgindi))我尝试导入图表时出现以下错误 "Module compiled with swift 3.0 cannot be imported in Swift 2.3"。我怎样才能克服这个问题并在 Swift 2.3 中实现 IOS 图表。我的需求是用饼图展示数据。
使用swift 2.3
中编写的较低版本
你的 podfile 中有这样的内容:pod 'Charts', '2.3.1'
,v2.3.1 支持 swift 2.3,v3.0+ 似乎支持 swift 3
您可能需要更改 pod 文件中的 pod 版本
或
使用以下 github 演示并安装 pod
我正在做一个用 swift 2.3 编码的项目,我正在尝试在新的 UIViewController.When 中使用 IOS 图表(作者:danielgindi))我尝试导入图表时出现以下错误 "Module compiled with swift 3.0 cannot be imported in Swift 2.3"。我怎样才能克服这个问题并在 Swift 2.3 中实现 IOS 图表。我的需求是用饼图展示数据。
使用swift 2.3
中编写的较低版本你的 podfile 中有这样的内容:pod 'Charts', '2.3.1'
,v2.3.1 支持 swift 2.3,v3.0+ 似乎支持 swift 3
您可能需要更改 pod 文件中的 pod 版本
或
使用以下 github 演示并安装 pod