CorePlot 1.5.1 pod安装失败

时间:2015-03-03 09:05:32

标签: ios cocoapods core-plot

我可以使用下面的Podfile安装 AFNetworking

platform :ios, '7.0'  
pod 'AFNetworking', '~> 2.0'

但无法安装 CorePlot ,这是我的Podfile,

source 'https://github.com/CocoaPods/Specs.git'
platform : ios, "8.0"

target "CorePlotTest" do

pod 'CorePlot', '~> 1.5.1'

end

这是我的错误代码,

enter image description here

我该怎么办?

2 个答案:

答案 0 :(得分:0)

您的podfile中存在语法错误。删除冒号(:)和" ios"之间的空格在平台上。

platform :ios, "8.0"

答案 1 :(得分:0)

文件中的内容没有问题,只需打开 vim Xcode 中的 Podfile ,而不是 TextEdit等其他内容

我们可以使用

open -a Xcode Podfile 

在Xcode中打开并编辑文件。

相关问题