未定义的方法'install!'

时间:2016-04-21 09:37:14

标签: cocoapods

我正在运行CocoaPods 0.39.0,当我运行pod install时出现以下错误:

[!] Invalid `Podfile` file: undefined method `install!' for #<Pod::Podfile:0x007fc3e993c510>. 
Updating CocoaPods might fix the issue.

这是我Podfile中导致错误的行:

install! 'cocoapods', :deterministic_uuids => false

我尝试运行gem install cocoapods来更新所有内容,只是为了确保不是问题所在。它没有帮助。

install!在Cocoapods文档中列为有效命令。它是否在0.39.0中不可用?解决方案是否更新到当前的测试版?

1 个答案:

答案 0 :(得分:0)

在进一步查看CocoaPods文档之后,似乎install!命令仅在测试版中可用。运行sudo gem install cocoapods --pre然后重新安装pod后,一切正常。