1. ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  2. ### Command
  3. ```
  4. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod install
  5. ```
  6. ### Report
  7. * What did you do?

  8. * What did you expect to happen?
  9. * What happened instead?
  10. ### Stack
  11. ```
  12. CocoaPods : 0.38.2
  13. Ruby : ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.4.0]
  14. RubyGems : 2.4.8
  15. Host : Mac OS X 10.10.4 (14E46)
  16. Xcode : 6.4 (6E35b)
  17. Git : git version 2.3.2 (Apple Git-55)
  18. Ruby lib dir : /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib
  19. Repositories : master - https://github.com/CocoaPods/Specs.git @ c046e39ccd7ec9743d07040e77f63b5d0442286e
  20. ```
  21. ### Plugins
  22. ```
  23. cocoapods-plugins : 0.4.2
  24. cocoapods-stats   : 0.5.3
  25. cocoapods-trunk   : 0.6.1
  26. cocoapods-try     : 0.4.5
  27. ```
  28. ### Podfile
  29. ```ruby
  30. platform :ios, '7.0' #手机的系统
  31. pod 'AMap3DMap' #3D 地图 SDK
  32. #pod 'AMap2DMap' #2D 地图 SDK (2D 和 3D 不能同一时候使用用)
  33. pod 'AMapSearch' #搜索服务 SDK
  34. pod "AFNetworking", "~> 2.0"
  35. ```
  36. ### Error
  37. ```
  38. Errno::ENOENT - No such file or directory - /Users/rwx-mac/Desktop/He/HeAmap/Pods/AMapSearch/AMapSearchKit.framework/Resources
  39. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:906:in `stat'
  40. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:906:in `symbolic_modes_to_i'
  41. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:927:in `fu_mode'
  42. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:1001:in `block (2 levels) in chmod_R'
  43. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:1466:in `preorder_traverse'
  44. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:999:in `block in chmod_R'
  45. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:998:in `each'
  46. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:998:in `chmod_R'
  47. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:117:in `block in prepare'
  48. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:140:in `message'
  49. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:116:in `prepare'
  50. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:103:in `install!'
  51. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
  52. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:101:in `run'
  53. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
  54. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in `run'
  55. /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/bin/pod:44:in `<top (required)>'
  56. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod:23:in `load'
  57. /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod:23:in `<main>'
  58. ```
  59. ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  60. [!] Oh no, an error occurred.
  61. Search for existing GitHub issues similar to yours:
  62. https://github.com/CocoaPods/CocoaPods/search?

    q=No+such+file+or+directory+-+%2FUsers%2Frwx-mac%2FDesktop%2FHe%2FHeAmap%2FPods%2FAMapSearch%2FAMapSearchKit.framework%2FResources&type=Issues

  63. If none exists, create a ticket, with the template displayed above, on:
  64. https://github.com/CocoaPods/CocoaPods/issues/new
  65. Be sure to first read the contributing guide for details on how to properly submit a ticket:
  66. https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
  67. Don't forget to anonymize any private data!

        昨天在使用CocoaPods时,报了这个错误,百思不得解,后来网上搜索。才发现这个问题应该是高德地图跟cocoapods 版本号兼容的问题 。

当CocoaPods 版本号是0.38.2的时候。就找不到高德地图在GitHub上面的仓库地址。

        
         那我们解决问题的方案就是。把当前CocoaPods版本号降为0.38.1就好了,或者其他版本号

        在终端中输入:
                             sudo gem uninstall cocoapods   (卸载当前的CocoaPods)

sudo gem install cocoapods -v 0.38.1  (安装0.38.1版本号的CocoaPods)



https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory报错解决方式的更多相关文章

  1. 解决 cocoapods diff: /../Podfile.lock: No such file or directory 问题

    解决cocoapods diff: /../Podfile.lock: No such file or directory google一圈之后,找到两个解决方案: 方案一:
 关闭Xcode,重新执 ...

  2. Git - could not read Username for 'https://github.com',push报错解决办法

    执行git push命令异常,如下: git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sou ...

  3. cocoapods diff: /../Podfile.lock: No such file or directory 解决方案

    在运行之前的使用 CocoaPods 工程时,有时会报错:diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: ...

  4. linux centos7 “git clone https://github.com/XXXXX” 报错解决方法

    2021-08-04 1. 问题描述 在执行以下命令时出现错误"正克隆到 'XXXXX'... fatal: unable to access 'https://github.com/lag ...

  5. IntelliJ cannot log in to GitHub上传github报错解决

    重装系统,新装的Intellij IDEA上新建的项目上传github失败,报错: invalid authentication token ... 此处多为本地git用户的用户名/邮箱,与之前设置的 ...

  6. push到github报错解决方法

    在push代码到远程仓库时,报了如下的错误: $ git push -u origin master To https://github.com/11pdg/group-buy.git ! [reje ...

  7. Error fetching https://gems.ruby-china.org/: bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz) 报错解决办法

    执行换源操作 gem source -a https://gems.ruby-china.org/ 时报错: Error fetching https://gems.ruby-china.org/: ...

  8. nginx 使用HTTPS协议-SSL证书模块报错解决-附nginx安装 : [emerg] the "ssl" parameter requires ngx_http_ssl_module in nginx.c

    Linux系统下ngnix使用HTTPS协议启动报错: nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_modul ...

  9. Xcode8更新CocoaPods报错解决办法

    Apple发布了iPhone7同时也发布了xcode8,第一时间升级,并且用Xcode8集成cocoapods但是打开工程,会报一大堆错误解决这个问题
由于OSX的安全解决方案,所以默认路径不能安装, ...

随机推荐

  1. Problem F: 程序填充(函数、指针):去数组负数

    #include <stdio.h> void f(int *a,int *m) { int i,j; ;i < *m;i++) ) { ;j++) a[j]=a[j+]; (*m) ...

  2. [转]servlet配置中init-param

    需要初始化的参数比如你的servlet里面有个属性为int total=0默认是0,你想让他初始时50则用init-param 给他赋值 init-param面对应的参数名和值,是给servlet在初 ...

  3. 时间同步Servname not supported for ai_socktype

    rdate -s 129.7.1.66rdate: 129.7.1.66: Servname not supported for ai_socktype ntpdate 0.centos.pool.n ...

  4. JS函数节流和函数防抖问题分析

    问题1:如果实现了dom拖拽功能,但是在绑定拖拽事件的时候发现每当元素稍微移动一点便触发了大量的回调函数,导致浏览器直接卡死,这个时候怎么办? 问题2:如果给一个按钮绑定了表单提交的post事件,但是 ...

  5. PHP中 "{}" 大括号的用法和总结

    在PHP中,大括号“{}”可以起到如下作用: 1.将多个独立语句合并为一个复合语句,例如 if ... else ...中经常如此使用 2.在变量间接引用中进行定界,避免歧义.例如 ${$my_var ...

  6. 与Xamarin.Forms跨平台的用户界面

    Xamarin.Forms 与Xamarin.Forms跨平台的用户界面 Xamarin的. 形式是一个跨平台的UI工具包,它允许开发人员 轻松地创建本地用户界面布局,可以共享 在Android,iO ...

  7. Android 5.0 怎样正确启用isLoggable(一)__使用具体解释

    isLoggable是什么 在Android源代码中,我们常常能够看到例如以下代码: //packages/apps/InCallUI/src/com/android/incallui/Log.jav ...

  8. 怎样用Jenkins触发还有一个Jenkins---Global build solution

    由于上次发的帖子太受欢迎,导致有非常多人问也有很多其它的人想知道.2个不同地域位置的Jenkins怎样自己主动触发相互的Job.当今非常多公司做的产品仅仅是全球化工作的一部分.须要这部分做好以后去做另 ...

  9. Android应用经典主界面框架之二:仿网易新闻client、CSDN client (Fragment ViewPager)

    另外一种主界面风格则是以网易新闻.凤凰新闻以及新推出的新浪博客(阅读版)为代表.使用ViewPager+Fragment,即ViewPager里适配器里放的不是一般的View.而是Fragment.所 ...

  10. asp 按钮 调用ajax时 会出现返回错误,尽量使用html按钮进行调用

    asp 按钮 调用ajax时 会出现返回错误,尽量使用html按钮进行调用