OGeek|极客世界-中国程序员成长平台

标题: ios - 无法通过 cocoapod 安装 CorePlot 2.0 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 10:26
标题: ios - 无法通过 cocoapod 安装 CorePlot 2.0

我一直在我的 Xcode 项目中使用使用 cocoapod 的 CorePlot 1.5.1 没有问题。现在我需要升级到 CorePlot 2.0,因为我需要对同一事件进行上/下调整。我尝试通过以下方式编辑 PodFile 来做到这一点:

pod 'CorePlot', '~> 2.0'

target 'ERPTests' do
pod 'CorePlot'
end

我得到错误“Podfile 所需的CorePlot (~> 2.0)”的第一种方式。第二种方式我得到了 1.5.1 版本。我的 cocoa pod 是 0.35.0。我用谷歌搜索并没有关于这个问题的相关帖子。有什么想法吗?



Best Answer-推荐答案


Core Plot 还没有 2.0 版本。在您的 podfile 中使用以下行指向 release-2.0 分支:

pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.0'

有一个适用于 Mac 和 iOS 应用程序的组合头文件。您还可以将 CorePlot-CocoaTouch.h header 用于 iOS 项目。

#import "CorePlot.h"

关于ios - 无法通过 cocoapod 安装 CorePlot 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29009885/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4