当我想从私有(private)存储库安装 pod 并运行 pod install
时,出现以下错误:
[!] Unable to add a source with url `https://bitbucket.org/mycompany/pods.git` named `bitbucket-some-pods`.
You can try adding it manually in `/Users/myusername/.cocoapods/repos` or via `pod repo add`.
我尝试过pod设置
,手动添加它,更新SSH key ,尝试将Podfile中的源url安装为ssh和html。没有任何帮助。
最佳答案
问题是我的系统上存储了一些 Git 凭据,但它们不知何故混淆了。我通过这种方式找到了凭据管理器:
$ git config --system --list
显示如下:credential.helper=osxkeychain
因此,我按照以下步骤操作:
- 打开钥匙串(keychain)访问
- 搜索了 github.com 的 key
- 删除了所有找到的键
- 重新启动笔记本电脑
- 完成
关于ios - 无法添加带有私有(private)存储库 url 的源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56379012/