iOS   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 如何使用私有pod添加私有Spec Repo?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我经历了这个教程 http://guides.cocoapods.org/making/private-cocoapods.html但是没有得到任何关于如何创建它的提示.
它只是展示了结构的唯一性.

另一方面,如果我尝试运行pod安装,这来了.
在这里,我尝试将sample-pod(私有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

@R_684_1@L_197_3@@ 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.

有关更多详细信息: – 操作系统 – 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?所遇到的程序开发问题。

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。