Cocoapods安装错误 [英] Cocoapods install getting error
问题描述
这是我的Podfile:
Here is my Podfile:
platform :ios, ‘7.0’
pod 'ECSlidingViewController', '~> 2.0.0'
当我在终端输入pod install时,这是我得到的错误:
When I type pod install into the terminal, this is the error I get:
[!] Invalid `Podfile` file: /Users/Kyle/Desktop/Testing/Podfile:1: no .<digit> floating literal anymore; put 0 before dot
platform :ios, ‘7.0’
^
/Users/Kyle/Desktop/Testing/Podfile:1: syntax error, unexpected tINTEGER, expecting '('
platform :ios, ‘7.0’
^. Updating CocoaPods might fix the issue.
Podfile中的所有东西看起来都是正确的。我试过而不是没有效果。我也删除了小数(点)并移动它。我错过了什么?
Everything in the Podfile seems correct. I have tried with " instead of ' with no effect. I have also removed the decimal (the dot) and moved it around. Am I missing something?
在浏览网页后,一位用户建议我的Ruby安装可能有问题,但我该怎么检查?我还验证我用这个安装了所有Ruby更新:
After trolling through the web, one user suggested that something might be wrong with my Ruby installation, but how can I check that? I have also verified that I installed all Ruby updates with this:
sudo gem update --system
任何帮助都会很棒,谢谢!
Any help would be great, thanks!
推荐答案
有同样的问题。很难注意到,但如果你是在Mac上并使用TextEdit编辑Podfile,引用chara cter可能已经改变了。在首选项中关闭智能引号。
Had this same issue. It's difficult to notice, but if you're on a Mac and used TextEdit to edit the Podfile, the quote character was probably changed. Turn off 'Smart Quotes' in Preferences.
这篇关于Cocoapods安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!