https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory報錯解決方案
阿新 • • 發佈:2019-02-20
- ――― 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", "~>
- ```
- ### 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版本降為0.38.1就好了,或者其它版本 在終端中輸入: sudo gem uninstall cocoapods (解除安裝當前的CocoaPods)
sudo gem install cocoapods -v 0.38.1 (安裝0.38.1版本的CocoaPods)