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. MYSQL复习笔记4-基本SQL语句

    Date: 20140115Auth: Jin参考:http://dev.mysql.com/doc/refman/5.1/zh/sql-syntax.html#select一:数据库操作1:显示数据 ...

  2. RequireJS 与 SeaJS 的异同

    相同之处 RequireJS 和 SeaJS 都是模块加载器,倡导的是一种模块化开发理念,核心价值是让 JavaScript 的模块化开发变得更简单自然. 不同之处 两者的区别如下: 定位有差异.Re ...

  3. Phpstorm-php在线手册配置

    php在线手册配置 第一个是浏览器软件位置 第二个是php网站写法 第三个是工作路径 C:\Users\hasee\AppData\Local\Google\Chrome\Application\ch ...

  4. MyBatis 显示日志

    <!-- 全局配置 --> <settings> <setting name="cacheEnabled" value="false&quo ...

  5. asp.net membership 修改密码

    aspnet_Applications 存储数据库所涉及应用程序有关信息. aspnet_Membership 存储与用户相关信息例如:用户登陆密码,创建时间. aspnet_Paths 存储应用程序 ...

  6. 浏览器下载附件Content-Disposition

    Content-disposition是MIME(Multipurpose Internet Mail Extensions,多用途互联网邮件扩展类型)协议的扩展,MIME协议指示MIME用户代理如何 ...

  7. [转]SSIS ProtectionLevel 对包中敏感数据的访问控制

    本文转自:http://technet.microsoft.com/zh-cn/library/ms141747.aspx 为了保护 Integration Services 包中的数据,可以设置保护 ...

  8. go语言基础之匿名变量和多重赋

    1.匿名变量 package main //必须有一个main包 import "fmt" func test() (a, b, c int) { return 1, 2, 3 } ...

  9. Java内存缓存

    1.缓存为什么要存在 应用服务器资源是有限的,数据库每秒中接受请求的次数也是有限的.如果利用有限的资源来提供尽可能大的吞吐量呢,一个办法:减少计 算量,缩短请求流程(减少网络io或者硬盘io),这时候 ...

  10. 突破防盗链机制:使用referrer-killer

    在开发it博客汇的过程中遇到一个难题:很多图片链接设置了防盗链机制,从我的网站请求图片会返回403错误,但直接在浏览器中打开图片的url时却又正常. 使用fiddler抓包发现,从我的网站请求图片会带 ...