Comment append un Repo Spec privé pour l'utilisation de pods privés?

Je suis allé à travers ce tutoriel http://guides.cocoapods.org/making/private-cocoapods.html, mais je n'ai aucun indice sur la façon de le créer. Il montre juste ce que serait la structure seulement.

De l'autre côté si j'essaye d'exécuter l'installation de pod ceci est venu. Ici, j'essaye d'installer sample-pod (Pod privé) dans un de mes projets locaux.

siddarths-MacBook-P:PodInstallDemoApp siddarthchaturvedi$ pod install Analyzing dependencies Pre-downloading: `sample-pod` from `[email protected]:MY_COMAPNY_NAME/sample-pod.git` Enter passphrase for key '/Users/siddarthchaturvedi/.ssh/id_rsa': Enter passphrase for key '/Users/siddarthchaturvedi/.ssh/id_rsa': [!] /usr/bin/git clone [email protected]:MY_COMPANY_NAME/sample-pod.git /Users/siddarthchaturvedi/Library/Caches/CocoaPods/GitHub/8ce0f86807ab15b9f8d51bb9d2026cc102ba51aa --mirror Cloning into bare repository '/Users/siddarthchaturvedi/Library/Caches/CocoaPods/GitHub/8ce0f86807ab15b9f8d51bb9d2026cc102ba51aa'... Saving password to keychain failed Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

Pour plus de détails: – OS – Mac OSX 10.9 utilisant la dernière version de cocoapods. git version 1.8.5.2 (Apple Git-48)

Vous devez créer votre propre repository Podspec qui contiendra vos files .podspec.

Ensuite, utilisez la command suivante pour indiquer à CocoaPods où se trouve votre repository privé:

 pod repo add <YourPivatePodsName> <YourPodRepoURL> 

Par exemple:

 pod repo add MyPrivatePods [email protected]:yourname/podspec.git