http://stackoverflow.com/questions/27727998/cocoa-pods-no-such-file-or-directory-error

I have an IOS project that uses cocoapods. After switching computers and updating the OS on the new computer I am getting the following error when I try running "pod update"

Robbys-iMac-454:ios-v2 robbykmyers$ pod update
Update all pods
Analyzing dependencies
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/robbykmyers/.cocoapods/repos (Errno::ENOENT)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `children'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/sources_manager.rb:63:in `all'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:130:in `repo_information'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'

Does anyone know how to solve this?

asked Jan 1 at 2:59
Rmyers
5610
 
  1. Delete the folder ~/.cocoapods/ with rm -rf ~/.cocoapods

  2. Enter pod setup command in Terminal.

This process will take time as this command clones the CocoaPods Specs repository into ~/.cocoapods/ on your computer.

answered Jan 1 at 5:40
Ramshad
10.8k31557
 
    
I actually didn't need to remove the file, I solved it by running "pod setup". Thanks for the response! – Rmyers Jan 2 at 22:36 
    
still i have the issue...! Guide me resolve the error –  Siten Jan 4 at 6:56

最新文章

  1. .NET跨平台之旅:成功将示例站点升级至ASP.NET Core RC2
  2. ABP理论学习之功能管理
  3. .NET应用架构设计—适当使用活动记录模式代替领域模型模式
  4. [技术分享] centos如何挂载Windows共享文件
  5. 项目里面的某个资源文件(比如plist、音频等)无法使用
  6. js获取本机的外网/广域网ip地址
  7. mybatis新增数据后获取自增主键
  8. keepalived安装配置(nginx)
  9. POJ:最长上升子序列
  10. Myeclipse2013 SVN安装方法以及项目上传到svn服务器
  11. C++内存管理(超长,例子很详细,排版很好)
  12. NHibernate执行原生带sum的sql
  13. jsScript中的一些操作方法
  14. JNI错误总结(转)
  15. sql优化个人总结(全)
  16. OpenGL实例:三角形
  17. 九、Linux上软件安装
  18. ImportError: No module named managers
  19. caffe报错:cudnn.hpp:86] Check failed: status == CUDNN_STATUS_SUCCESS (3 vs. 0) CUDNN_STATUS_BAD_PARAM 原因
  20. john and hydra using de-ice1.100

热门文章

  1. [CodeForces - 296D]Greg and Graph(floyd)
  2. Sqlite客户端的使用
  3. UnicodeDecodeError: &#39;gbk&#39; codec can&#39;t decode byte 0xab in position 11126: illegal multibyte sequence
  4. anr trace文件分析
  5. swoole创建websocket服务器
  6. express 热启动 静态文件部署 跨域解决 调试
  7. Canvas 剪切图片
  8. Python全栈(一)编程语言介绍
  9. 1094 The Largest Generation (25 分)(树的遍历)
  10. Ext JS 的一个非常好的学习网站