https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory报错解决方案

  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/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:117:in `block in prepare‘
  48. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:140:in `message‘
  49. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:116:in `prepare‘
  50. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:103:in `install!‘
  51. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:71:in `run_install_with_update‘
  52. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:101:in `run‘
  53. /Users/rwx-mac/.rvm/gems/[email protected]/gems/claide-0.9.1/lib/claide/command.rb:312:in `run‘
  54. /Users/rwx-mac/.rvm/gems/[email protected]/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in `run‘
  55. /Users/rwx-mac/.rvm/gems/[email protected]/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)

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-24 23:24:45

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

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

最近把以前代码放到新电脑上运行,在执行pod update之后build工程遇到如下提示: diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods instal

使用docker报错 :Error response from daemon: Get https://index.docker.io/v1/search?q=java&amp;n=25: dial tcp:

查看服务器DNS网络配置 vim /etc/resolv.conf 把里面的内容注释,并改为: nameserver 8.8.8.8 nameserver 8.8.8.4 重启网络服务 systemctl restart network 即可 原文地址:https://www.cnblogs.com/zhengyuanyuan/p/11830308.html

CocoaPods报错及解决方法记录

[!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+-+%2FUsers%2Fquan%2FDesktop%2F%E8%AF%BE%E5%A0%82%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%2F8+-+%E7

GitHub Desktop报错fatal: unable to access &#39;https://github.com……: schannel: failed to open CA file &#39;C:/Users……bundle.crt&#39;: No such file or directory的解决办法

昨天github桌面版push的时候开始报错,提示某个crt文件找不到,大概就是下面这样 fatal: unable to access 'https://github.com/XXX/': schannel: failed to open CA file 'C:/Users/Andrew/AppData/Local/GitHubDesktop/app-1.2.2/resources/app/git/mingw64/bin/curl-ca-bundle.crt': No such file or

从GitHub上下载的项目总是报错

============问题描述============ 想看看别人的代码学习一下,但是从GitHub上下载下来,在Eclipse里import,总是报错,有的中文注释还会乱码. 我觉得可能是少了第三方库?但是为什么上传的时候没有一起上传呢? 新手,求教 ============解决方案1============ github上的很多都不是eclipse开发的,你自己建工程,拷过来就行了.

php curl访问https 域名接口一直报错的问题

这两天一直在对接一个https的接口 通过本地postman完美链接后再服务器一直报错 出现问题:linux 下 curl可以正常访问 但是PHP请求一直返回false 测试方法:var_dump(curl_error($ch)); <在close之前> 返回:“SSL: certificate subject name 'xxx' does not match target host name 'www.miniscores.cn'” 这说明ssl证书有问题,如果对方没有给定证书.就忽略吧.

[cocoaPods]在pod search AFNetworking之后报错([!] /usr/bin/git clone &#39;https://github.com/CocoaPods/Specs.)

在pod search AFNetworking之后遇到了这个问题 执行 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer (-switch 后面加上你的Xcode.app包内容里的Developer的文件夹路径即可) 版权声明:本文为博主原创文章,未经博主允许不得转载. [cocoaPods]在pod search AFNetworking之后报错([!] /usr/bin/git clone 'https

Xcode 7 中 CocoaPods 编译报错 dyld: Library not loaded: @rpath/Pods.framework/Pods

问题症状与解决 在 Xcode 7 beta 3 (7A152u) 中创建 Swift 项目,并使用 CocoaPods 做依赖管理,编译时会遇到如下的报错: dyld: Library not loaded: @rpath/Pods.framework/Pods Referenced from: /private/var/mobile/Containers/Bundle/Application/26B91138-7483-40B0-9BE6-D27072472895/AppName.app/A

[cocoapods]cocoapods问题解决

错误1. While executing gem no such name 错误原因:gem 网址被挡住了. 解决办法:设置https://ruby.taobao.org/ 详情参考 http://www.cnblogs.com/lidongxu/p/5147015.html 错误2. You don't have write permissions for the... 错误原因:   代表你没有权限. 解决办法:  得调用超级用户sudo 输入命令sudo gem install cocoa