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. Train Problem I(模拟栈)

    题意:模拟栈,试问使用2个栈,能否使得串1变为串2 思路:模拟,经典问题,注意只要相同的元素放到栈顶后就不会再移动了,只需要考虑剩下的元素,因此每次只考虑一个元素的进入方式. #include< ...

  2. js 根据开始日期和结束日期显示倒计时

    <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Con ...

  3. winform 中设置窗体的默认焦点

    转载:http://www.cnblogs.com/weekzero/p/3504513.html winform的窗体中,有时候需要设置默认焦点,有时候需要取消默认焦点. 设置默认焦点,最简单的方法 ...

  4. TSQL语言基础笔记之单表查询

    db_id()函数 返回对象的id,如果返回的对象为null,则判断不存在 if db_id('testdb') is null --判断数据库是否存在 create database testdb ...

  5. php判断手机客户端

    <?php // check if wap function check_wap(){ if(stristr($_SERVER['HTTP_VIA'],"wap")){// ...

  6. VMware 8安装Mac OS X 10.7

    (Windows 7 X64环境下,VMware 8.0正式版)虚拟机首尝MAC OS X 10.7 Lion系统成功,特将此好消息分享.2年了,终于我也装上了Mac,我也成功的尝到了苹果味道,看着那 ...

  7. fmri 实验设计 / 范式设计/ paradigm design

    reference:http://www.psychology.gatech.edu/cabi/Resources/Course/index.html sluggish 懒散的,无精打采的.哈哈,pp ...

  8. Hibernate 注解@Column(nullable = false) 和 @Column(unique=true)

    unique=true是指这个字段的值在这张表里不能重复,所有记录值都要唯一,就像主键那样; nullable=false是这个字段在保存时必需有值,不能还是null值就调用save去保存入库;

  9. js 在表单提交前进行操作

    最近在写页面的时候,需要手动写一些在表单进行提交前的验证操作,正好看到了2种阻止表单提交的方法,可以进行一些逻辑处理 方法一:使用return false 原生js写法: <form id=&q ...

  10. vim 多窗口,多tab编辑

    原文: https://blog.csdn.net/shuangde800/article/details/11430659 ------------------------------------- ...