Google Cocoapods does not install

Whenever I try to install any of the Google cocoapods, I get one of two errors.

Or:

$ pod install
Analyzing dependencies
[!] The version of CocoaPods used to generate the lockfile (0.38.0.beta.2) is higher than the version of the current executable (0.37.2). Incompatibility issues may arise.

CocoaPods 0.38.0.beta.2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Downloading dependencies
Installing Google (1.0.7)

[!] Error installing Google

...

inflating: /var/folders/<myDirectory>/Samples/signin/SignInExampleSwift/ViewController.swift  
warning [/var/folders/<myDirectory>/file.zip]:  375 extra bytes at beginning or within zipfile

(attempting to process anyway)

Or:

$ pod install
[in /Users/<user>/Desktop/FakeProject]
Analyzing dependencies

CocoaPods 0.38.0.beta.2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Downloading dependencies
Installing AppInvites (1.0.1)

[!] Error installing AppInvites
[!] /usr/bin/tar xfz /var/folders/<myDirectory>/file.tgz -C /var/folders/<myDirectory>

tar: Unrecognized archive format

tar: Error exit delayed from previous errors.

I tried this with both new and existing objective-c projects, and tried to uninstall and reinstall cocoapods. Not quite sure what the problem is, and Google does not have any problems for their cocapodes.

+4
source share
2 answers

Try to upgrade your gem

sudo gem update -n /usr/local/bin cocoapods
pod install
+19
source

I had the same problem and I did gem install cocoapodsand then pod installworked fine.

0
source

All Articles