Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cocoapods Not Installing

Whenever I try to install any of Google's cocoapods I get one of two errors.

Either:

$ 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've been trying this with both new and existing objective-c projects and have tried uninstalling and re-installing cocoapods. Not really sure what the issue seems to be and Google doesn't have any troubleshooting for their cocoapods.

like image 766
Richard Avatar asked Jul 14 '15 22:07

Richard


Video Answer


1 Answers

Try updating your gem

sudo gem update -n /usr/local/bin cocoapods
pod install
like image 108
RED Avatar answered Oct 15 '22 07:10

RED