CorePlot 1.5.1吊舱安装失败

问题描述:

我可以安装AFNetworking与下面的Podfile,CorePlot 1.5.1吊舱安装失败

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

我该怎么办?

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

platform :ios, "8.0" 
+0

什么都没有改变 – KaKa 2015-03-04 06:44:10

文件中的内容是没有问题,只是在VIM打开Podfile的Xcode,而不是其他的东西像文本编辑

我们可以使用

open -a Xcode Podfile 

打开并编辑在Xcode的文件。