2017-05-14 9 views
0

CocoaPodsを使用してGoogleスプレッドシートをプロジェクトに追加しようとしましたが、エラーが発生しました。CocoaPodを使用してiOSにGoogleシートを追加する

Podfile:ポッドをインストールした後

source 'https://github.com/CocoaPods/Specs.git' 
# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'ict' do 

pod 'Google/SignIn' 
pod 'GoogleAPIClientForREST/Sheets' 
pod 'GTMAppAuth' 



end 

エラー:

Analyzing dependencies 
Downloading dependencies 
Installing AppAuth (0.7.1) 
Installing FirebaseAnalytics (3.9.0) 

[!] Error installing FirebaseAnalytics 
[!] /usr/bin/tar xfz /var/folders/_p/k47cs36s3r585kmsg84x7v580000gp/T/d20170514-96989-lvaiwn/file.tgz -C /var/folders/_p/k47cs36s3r585kmsg84x7v580000gp/T/d20170514-96989-lvaiwn 

tar: Unrecognized archive format 
tar: Error exit delayed from previous errors. 

答えて

2

次の手順を実行すると、あなたのPodfile内容をコピーすることで、私はすべてのエラーを取得しませんでした:

注: $atom Podfileの部分は、アトムのテキストエディタでPodfileを編集するためのものでした。

$ pod init 
$ atom Podfile 
$ pod install 

出力:

Analyzing dependencies 
Downloading dependencies 
Installing AppAuth (0.7.1) 
Installing FirebaseAnalytics (3.9.0) 
Installing FirebaseCore (3.6.0) 
Installing FirebaseInstanceID (1.0.10) 
Installing GTMAppAuth (0.5.0) 
Installing GTMOAuth2 (1.1.4) 
Installing GTMSessionFetcher (1.1.9) 
Installing Google (3.0.3) 
Installing GoogleAPIClientForREST (1.2.1) 
Installing GoogleSignIn (4.0.2) 
Installing GoogleToolboxForMac (2.1.1) 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `ict.xcworkspace` for this project from now on. 
Sending stats 
Pod installation complete! There are 3 dependencies from the Podfile and 11 total pods installed. 
MacBook-Pro:ict Bajo$ 
+1

おかげで、問題は私の地元のポッドキャッシュであるので、私は削除してresetupポッドます。 – AVEbrahimi

+0

面白いです、どうやって見つけましたか? –

+0

いいえ、間違っていましたが、PODキャッシュを削除した後も同じエラーが表示されます。 – AVEbrahimi

関連する問題