2017-05-14 18 views
0

我試圖使用CocoaPods將Google表格添加到項目,但收到錯誤。使用CocoaPods將Google表格添加到iOS

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部分用於編輯帶有Atom文本編輯器的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

相關問題