Cocoapods: Can't load use pod init , pod setup

Created on 24 Oct 2016  路  6Comments  路  Source: CocoaPods/CocoaPods

Stack

   CocoaPods : 1.1.1
        Ruby : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
    RubyGems : 2.5.1
        Host : Mac OS X 10.12 (16A323)
       Xcode : 8.0 (8A218a)
         Git : git version 2.8.4 (Apple Git-73)
Ruby lib dir : /usr/local/Cellar/ruby/2.3.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.1.1
cocoapods-try         : 1.1.0
awaiting validation

Most helpful comment

Hrm:

Repositories : master - https://github.com/CocoaPods/Specs.git @ fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

With respect to this, I'd recommend deleting the pods folder, not sure how it got into this state. rm -rf ~/.cocoapods/repos

All 6 comments

Can you provide some information about the error you experienced? There's not enough information here to debug this.

Hrm:

Repositories : master - https://github.com/CocoaPods/Specs.git @ fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

With respect to this, I'd recommend deleting the pods folder, not sure how it got into this state. rm -rf ~/.cocoapods/repos

Ah sorry I glossed over the error output. Yep. @orta's suggestion should do the trick.

Closing due to lack of activity. If this is still a a problem please file a new issue.

what is this type of thing i unable to understand so please help me to resolve the issue if there any....
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1387528, done.
remote: Compressing objects: 100% (272/272), done.
Receiving objects: 11% (161656/1387528), 32.18 MiB | 199.00 KiB/s

I manually removed some folders from file system en was in this state where pod install is not working..
rm -rf ~/.cocoapods/repos
fixed this, thanks.

Was this page helpful?
0 / 5 - 0 ratings