pod更新 - 没有这样的文件

时间:2014-12-23 17:42:50

标签: ruby cocoapods

执行pod update时出现此错误。

pod update
[in /Users/snowcrash/myproject]
Update all pods
Analyzing dependencies
/Users/snowcrash/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/pathname.rb:425:in `open': No such file or directory @ dir_initialize - /Users/snowcrash/.cocoapods/repos (Errno::ENOENT)
    from /Users/snowcrash/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/pathname.rb:425:in `foreach'

知道为什么吗?

1 个答案:

答案 0 :(得分:0)

修正如下:

rm -rf ~/.cocoapods
pod setup

另见: Error on pod install