ios - 无法添加带有私有(private)存储库 url 的源

标签 ios terminal cocoapods bitbucket

当我想从私有(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

因此,我按照以下步骤操作:

  1. 打开钥匙串(keychain)访问
  2. 搜索了 github.com 的 key
  3. 删除了所有找到的键
  4. 重新启动笔记本电脑
  5. 完成

关于ios - 无法添加带有私有(private)存储库 url 的源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56379012/

相关文章:

ios - 如何制作没有圆角的 UIProgressView 标准矩形?

terminal - 如何更改 urxvt 中复制/粘贴的默认快捷键?

windows - 如何使批处理文件通过新的Windows终端运行?

ios - Firebase Firestore 和 Protobuf 的词法或前身问题,这两个文件夹是问题所在

ios - 我如何检查 cocoa pod 是否有新的测试版?

ios - 如何解决 -lPods not found?

ios - 当 userinteractionenabled 为 NO 时获取触摸

ios - 计算总行驶距离 iOS Swift

ios - Cocoapods ld : library not found for -lPods-Projectname

windows - 使用 vagrant ssh 时如何粘贴到 SourceTree 终端窗口