【问题标题】:Core Plot getting the error "Too many arguments to function call"Core Plot 得到错误“函数调用的参数太多”
【发布时间】:2015-01-04 18:34:14
【问题描述】:

今天我在CPTAnimationPlotRangePeriod.m 中开始出现 2 个错误:

我试图清理项目,但它没有做任何事情。

当我尝试安装它时它开始了:https://github.com/devxoul/JLToast。我已按照所有说明进行操作:

  1. gem install cocoapods --pre
  2. 将此添加到我的 Podfile:pod 'JLToast'
  3. pod install

这就是我的 Podfile 的样子:

# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'


target '[Project name]' do
    pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch =>    'release-2.0'
    pod 'JLToast'
end

【问题讨论】:

  • 如果错误出现在 Objective-C 代码中,为什么会用 [swift] 标记?

标签: objective-c core-plot cocoapods


【解决方案1】:

新版本的 Cocoapods 启用了一个破坏 Core Plot 构建的新构建选项。它已在最新代码中修复。有关详细信息,请参阅issue 138

将您的 pod 文件指向存储库头部,而不是版本号。

【讨论】:

  • 您能实际发布所需的 podfile 更改吗?
  • 问题中的podfile没问题。它引用了release-2.0 分支的头部。修复也在master
  • 要指向 master,在你的 podfile 中使用它:pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
【解决方案2】:

除了编辑 Podfile 之外,您还可以选择在项目中修复 CorePlot 代码。所需的代码更改在这里:https://github.com/IngmarStein/core-plot/commit/3413d8b7fa382921a918e7801a22e614a17b8bbf

【讨论】:

    猜你喜欢
    • 2021-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-16
    • 2018-04-22
    • 1970-01-01
    • 1970-01-01
    • 2016-07-24
    相关资源
    最近更新 更多