ios7 – Cocoapods安装得到错误

参见英文答案 > Cocoa pods issue after modify Pods file6
这是我的Podfile:
platform :ios,‘7.0’

pod 'ECSlidingViewController','~> 2.0.0'

当我将pod安装到终端中时,这是我得到的错误:

[!] 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中的所有内容似乎都是正确的.我试过用“而不是”没有效果,我也删除了小数点(圆点),并移动它,我错过了什么?

通过网络浏览后,一位用户建议我的Ruby安装可能有问题,但如何检查?我也验证了我安装了所有的Ruby更新:

sudo gem update --system

任何帮助将是伟大的,谢谢!

解决方法

有同样的问题.很难注意到,但是如果您使用Mac并使用TextEdit来编辑Podfile,则引号可能已更改.在偏好设置中关闭“智能报价”.

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...