2016-04-21 29 views
0

我跑的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中沒有?解決方案是更新到當前的測試版嗎?

回答

0

進一步查看CocoaPods文檔後,確實看到install!命令僅在beta版本中可用。運行sudo gem install cocoapods --pre後,然後重新安裝吊艙,一切正常。