ios – 如何使用私有pod添加私有Spec Repo?

ios – 如何使用私有pod添加私有Spec Repo?,第1张

概述我经历了这个教程 http://guides.cocoapods.org/making/private-cocoapods.html但是没有得到任何关于如何创建它的提示. 它只是展示了结构的唯一性. 另一方面,如果我尝试运行pod安装,这来了. 在这里,我尝试将sample-pod(私有pod)安装到我的本地项目之一. siddarths-MacBook-P:PodInstallDemoApp s 我经历了这个教程 http://guides.cocoapods.org/making/private-cocoapods.html但是没有得到任何关于如何创建它的提示.
它只是展示了结构的唯一性.

另一方面,如果我尝试运行pod安装,这来了.
在这里,我尝试将sample-pod(私有pod)安装到我的本地项目之一.

sIDdarths-MacBook-P:PodInstallDemoApp sIDdarthchaturvedi$pod installAnalyzing dependencIEsPre-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 --mirrorcloning into bare repository    '/Users/sIDdarthchaturvedi/library/Caches/CocoaPods/GitHub/8ce0f86807ab15b9f8d51bb9d2026cc102ba51aa'...Saving password to keychain FailedPermission denIEd (publickey).fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

有关更多详细信息: – *** 作系统 – Mac OSX 10.9使用最新版本的cocoapods.
                    git版本1.8.5.2(Apple Git-48)

解决方法 您需要创建自己的Podspec仓库,其中包含.podspec文件.

然后使用以下命令让CocoaPods知道您的私人仓库的位置:

pod repo add <YourPivatePodsname> <YourPodRepoURL>

例如:

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

以上是内存溢出为你收集整理的ios – 如何使用私有pod添加私有Spec Repo?全部内容,希望文章能够帮你解决ios – 如何使用私有pod添加私有Spec Repo?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1066520.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存