Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何为使用私有pod添加私有Spec Repo?_Ios_Cocoa Touch_Cocoapods - Fatal编程技术网

Ios 如何为使用私有pod添加私有Spec Repo?

Ios 如何为使用私有pod添加私有Spec Repo?,ios,cocoa-touch,cocoapods,Ios,Cocoa Touch,Cocoapods,我浏览了这个教程,但没有得到任何关于如何创建它的提示。 它只是显示了什么将是唯一的结构 另一方面,如果我尝试运行pod安装,则会出现这种情况。 在这里,我试图安装样本吊舱(私人吊舱)到我的一个本地项目 siddarths-MacBook-P:PodInstallDemoApp siddarthchaturvedi$ pod install Analyzing dependencies Pre-downloading: `sample-pod` from `git@github.com:MY_CO

我浏览了这个教程,但没有得到任何关于如何创建它的提示。 它只是显示了什么将是唯一的结构

另一方面,如果我尝试运行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.
更多详情:-操作系统-MacOSX10.9使用最新版本的cocoapods。
git版本1.8.5.2(Apple git-48)

您需要创建自己的Podspec repo,其中将包含您的.Podspec文件

然后使用以下命令让CocoaPods知道您的私人回购在哪里:

pod repo add <YourPivatePodsName> <YourPodRepoURL>

如何镜像此结构。├── 规格└── [规格名称]└── [版本]└── [SPEC_NAME].podspec就像我必须在github online中手动创建这些文件夹一样。@kidsid49使用SourceTree克隆repo,添加文件夹和文件并推送。有人知道更新本地私有repo的命令吗?@WalterMartinVargas Pena是你要找的吗?@Adam是“MyPrivatePods”吗回购协议与我们之前创建并将数据推送到的回购协议不同?如果是的话,那么什么东西会被推送到这个私人回购协议中呢?如果你使用的是双因素认证,可能就是这样。本文有一个要解决的问题
pod repo add MyPrivatePods git@bitbucket.org:yourname/podspec.git