2017-05-14 2 views
0

J'ai essayé d'ajouter des feuilles de calcul Google à un projet en utilisant CocoaPods, mais vous recevez une erreur.Ajout de feuilles de calcul Google à iOS à l'aide de CocoaPods

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 

erreur après l'installation Pod:

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. 

Répondre

2

En suivant ces étapes et la copie de vos Podfile contenu, je n'ai pas eu d'erreur:

REMARQUE: Le $atom Podfile partie était pour l'édition Podfile avec l'éditeur de texte Atom.

$ pod init 
$ atom Podfile 
$ pod install 

Sortie:

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

Merci, donc le problème est avec le cache de mon pod local, je vais enlever et les gousses de resetup. – AVEbrahimi

+0

Intéressant, comment l'avez-vous découvert? –

+0

Non, j'avais tort, recevant toujours la même erreur après la suppression du cache POD: | – AVEbrahimi