尝试安装Pods时,出现错误“ with_indifferent_access”。

尝试安装Pods时,出现错误“ with_indifferent_access”。

问题描述:

当我在终端上安装Pod时,出现了此问题。

When I made pod install on terminal this problem appeared.

cocoapods-core-1.7.2 / lib / cocoapods-core / source / metadata.rb:15:in initialize':undefined method with_indifferent_access'为false:FalseClass(NoMethodError)

cocoapods-core-1.7.2/lib/cocoapods-core/source/metadata.rb:15:in initialize': undefined methodwith_indifferent_access' for false:FalseClass (NoMethodError)

rm -rf ~/.cocoapods/repos/trunk/

尝试此命令。
对我有用

Try this command. It works for me