Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sathyarajshetigar/df25ca2208ffdf7547524f37663079bc to your computer and use it in GitHub Desktop.
Save sathyarajshetigar/df25ca2208ffdf7547524f37663079bc to your computer and use it in GitHub Desktop.
Pod Error
PS H:\Projects\Sathyaraj\SpiteAndMaliceGit\SpiteAndMalice\iosBuild> cocoapods pod install
Starting CocoaPods daemon (this can take some time, please wait...)
Preparing staging directory...
Sending Podfile and context...
Sending command: pod install
========================== CocoaPods output BEGIN ===========================
Analyzing dependencies
Downloading dependencies
Installing Google-Mobile-Ads-SDK (7.61.0)
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/local/bin/pod install
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.9.1
Ruby : ruby 2.6.5p114 (2019-10-01 revision 67812) [amd64-freebsd12]
RubyGems : 3.0.6
Host : Unable to find an executable (No such file or directory - sw_vers) ()
Xcode : xcodebuild) ()
Git : git version 2.26.2
Ruby lib dir : /usr/local/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs @ d72d95f72f37ae1c163c12d34c28bf89a54b8fbe
```
### Plugins
```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.2.0
```
### Podfile
```ruby
source 'https://github.com/CocoaPods/Specs'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'Unity-iPhone' do
pod 'Google-Mobile-Ads-SDK', '~> 7.60'
end
```
### Error
```
Errno::ENOTEMPTY - Directory not empty @ dir_s_rmdir - /Users/cocoapods/Library/Caches/CocoaPods/Pods
/usr/local/lib/ruby/2.6/fileutils.rb:1431:in `rmdir'
/usr/local/lib/ruby/2.6/fileutils.rb:1431:in `block in remove_dir1'
/usr/local/lib/ruby/2.6/fileutils.rb:1442:in `platform_support'
/usr/local/lib/ruby/2.6/fileutils.rb:1430:in `remove_dir1'
/usr/local/lib/ruby/2.6/fileutils.rb:1423:in `remove'
/usr/local/lib/ruby/2.6/fileutils.rb:760:in `block in remove_entry'
/usr/local/lib/ruby/2.6/fileutils.rb:1480:in `ensure in postorder_traverse'
/usr/local/lib/ruby/2.6/fileutils.rb:1480:in `postorder_traverse'
/usr/local/lib/ruby/2.6/fileutils.rb:758:in `remove_entry'
/usr/local/lib/ruby/2.6/fileutils.rb:610:in `block in rm_r'
/usr/local/lib/ruby/2.6/fileutils.rb:606:in `each'
/usr/local/lib/ruby/2.6/fileutils.rb:606:in `rm_r'
/usr/local/lib/ruby/2.6/pathname.rb:589:in `rmtree'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/downloader/cache.rb:83:in `ensure_matching_version'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/downloader/cache.rb:22:in `initialize'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/downloader.rb:41:in `new'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/downloader.rb:41:in `download'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:557:in `install_source_of_pod'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:508:in `block (2 levels) in install_pod_sources'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:507:in `block in install_pod_sources'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:490:in `each'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:490:in `install_pod_sources'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:249:in `block in download_dependencies'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:248:in `download_dependencies'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:157:in `install!'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/lib/ruby/gems/2.6/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.9.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/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=Directory+not+empty+%40+dir_s_rmdir+-+%2FUsers%2Fcocoapods%2FLibrary%2FCaches%2FCocoaPods%2FPods&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!
Looking for related issues on cocoapods/cocoapods...
- Not able to install pod
https://github.com/CocoaPods/CocoaPods/issues/9846 [closed] [2 comments]
5 weeks ago
- CocoaPods issues when React-native init command fire
https://github.com/CocoaPods/CocoaPods/issues/9795 [closed] [4 comments]
5 weeks ago
- Could not remove the Cache when pod upgrade/downgrade?
https://github.com/CocoaPods/CocoaPods/issues/7915 [closed] [11 comments]
3 weeks ago
and 3 more at:
https://github.com/cocoapods/cocoapods/search?q=Directory%20not%20empty%20%40%20dir_s_rmdir%20-%20%2FUsers%2Fcocoapods%2FLibrary%2FCaches%2FCocoaPods%2FPods&type=Issues&utf8=✓
=========================== CocoaPods output END ============================
PS H:\Projects\Sathyaraj\SpiteAndMaliceGit\SpiteAndMalice\iosBuild>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment