如何添加一个私人的规格回购使用私人的豆荚?

我经历了这个教程http://guides.cocoapods.org/making/private-cocoapods.html,但没有得到任何提示,如何创build它。 它只是显示了只有结构。

另一方面,如果我尝试运行pod安装,这来了。 在这里,我正在尝试安装示例荚(私人荚)到我的本地项目之一。

siddarths-MacBook-P:PodInstallDemoApp siddarthchaturvedi$ pod install Analyzing dependencies Pre-downloading: `sample-pod` from `git@github.com: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 git@github.com: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. 

欲了解更多详情: – 操作系统 – 使用最新版本的cocoapods的Mac OSX 10.9。 git版本1.8.5.2(Apple Git-48)

您需要创build自己的Podspec回购,其中将包含您的.podspec文件。

然后使用下面的命令让CocoaPods知道你的私有仓库在哪里:

 pod repo add <YourPivatePodsName> <YourPodRepoURL> 

例如:

 pod repo add MyPrivatePods git@bitbucket.org:yourname/podspec.git