如何添加私人规格回购使用私人pod? [英] How to add a private Spec Repo for using private pods?

查看:323
本文介绍了如何添加私人规格回购使用私人pod?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我参加了本教程 http://guides.cocoapods.org/making/private -cocoapods.html ,但不能得到任何提示,如何创建它。
它只是显示了结构是什么。

I went through this tutorial http://guides.cocoapods.org/making/private-cocoapods.html but coun't get any hint like how to create it. Its just shows what would be the structure only.

另一方面,如果我尝试运行pod安装这来了。
这里我试图安装样例pod(私人pod)到我的一个本地项目。

On the other side if i try to run pod install this came. Here i am trying to install sample-pod (Private pod) to one of my local project.

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.

有关详细信息: - OS - Mac OSX 10.9使用最新版本的Cocapods。
git version 1.8.5.2(Apple Git-48)

For more details :- OS - Mac OSX 10.9 using latest version of cocoapods. git version 1.8.5.2 (Apple Git-48)

推荐答案

您需要创建自己的Podspec库包含您的.podspec文件。

You need to create your own Podspec repo which will contain your .podspec files.

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

Then use the following command to let CocoaPods know where your private repo is:

pod repo add <YourPivatePodsName> <YourPodRepoURL>

例如:

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

这篇关于如何添加私人规格回购使用私人pod?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆