谷歌Cocoapods没有安装

Ric*_*ard 6 objective-c ios cocoapods google-analytics-sdk

每当我尝试安装任何Google的cocoapods时,我都会遇到两个错误之一.

或者:

$ 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)
Run Code Online (Sandbox Code Playgroud)

要么:

$ 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.
Run Code Online (Sandbox Code Playgroud)

我一直在尝试新的和现有的objective-c项目,并尝试卸载和重新安装cocoapods.不确定问题似乎是什么,谷歌没有对他们的cocoapods进行任何故障排除.

小智 21

尝试更新你的宝石

sudo gem update -n /usr/local/bin cocoapods
pod install
Run Code Online (Sandbox Code Playgroud)