gpt4 book ai didi

ios - 如何添加私有(private) Spec Repo 以使用私有(private) pod?

转载 作者:可可西里 更新时间:2023-11-01 04:25:12 26 4
gpt4 key购买 nike

我完成了本教程 http://guides.cocoapods.org/making/private-cocoapods.html但无法获得有关如何创建它的任何提示。它仅显示结构。

另一方面,如果我尝试运行 pod install,它就会出现。在这里,我正在尝试将 sample-pod(私有(private) 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)

最佳答案

您需要创建自己的 Podspec 存储库,其中将包含您的 .podspec 文件。

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

pod repo add <YourPivatePodsName> <YourPodRepoURL>

例如:

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

关于ios - 如何添加私有(private) Spec Repo 以使用私有(private) pod?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25052755/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com