https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory报错解决方式
- ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
- ### Command
- ```
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod install
- ```
- ### Report
-
* What did you do?
- * What did you expect to happen?
- * What happened instead?
- ### Stack
- ```
- CocoaPods : 0.38.2
- Ruby : ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.4.0]
- RubyGems : 2.4.8
- Host : Mac OS X 10.10.4 (14E46)
- Xcode : 6.4 (6E35b)
- Git : git version 2.3.2 (Apple Git-55)
- Ruby lib dir : /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib
- Repositories : master - https://github.com/CocoaPods/Specs.git @ c046e39ccd7ec9743d07040e77f63b5d0442286e
- ```
- ### Plugins
- ```
- cocoapods-plugins : 0.4.2
- cocoapods-stats : 0.5.3
- cocoapods-trunk : 0.6.1
- cocoapods-try : 0.4.5
- ```
- ### Podfile
- ```ruby
- platform :ios, '7.0' #手机的系统
- pod 'AMap3DMap' #3D 地图 SDK
- #pod 'AMap2DMap' #2D 地图 SDK (2D 和 3D 不能同一时候使用用)
- pod 'AMapSearch' #搜索服务 SDK
- pod "AFNetworking", "~> 2.0"
- ```
- ### Error
- ```
- Errno::ENOENT - No such file or directory - /Users/rwx-mac/Desktop/He/HeAmap/Pods/AMapSearch/AMapSearchKit.framework/Resources
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:906:in `stat'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:906:in `symbolic_modes_to_i'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:927:in `fu_mode'
- /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'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:1466:in `preorder_traverse'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:999:in `block in chmod_R'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:998:in `each'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/fileutils.rb:998:in `chmod_R'
- /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'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:140:in `message'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:116:in `prepare'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:103:in `install!'
- /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'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:101:in `run'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in `run'
- /Users/rwx-mac/.rvm/gems/ruby-2.0.0-p643@global/gems/cocoapods-0.38.2/bin/pod:44:in `<top (required)>'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod:23:in `load'
- /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod:23:in `<main>'
- ```
- ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
- [!] 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%2Frwx-mac%2FDesktop%2FHe%2FHeAmap%2FPods%2FAMapSearch%2FAMapSearchKit.framework%2FResources&type=Issues
- If none exists, create a ticket, with the template displayed above, on:
- https://github.com/CocoaPods/CocoaPods/issues/new
- Be sure to first read the contributing guide for details on how to properly submit a ticket:
- https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
- 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)