无法添加带有私人回购网址的来源

时间:2019-05-30 13:09:54

标签: ios terminal cocoapods bitbucket

当我想从私人仓库安装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 setup,手动添加,更新SSH密钥,尝试安装在Podfile内同时具有ssh和html的源URL。没有任何帮助。

1 个答案:

答案 0 :(得分:0)

问题是我在系统上存储了一些Git凭证,并且它们以某种方式混杂在一起。我以这种方式找到了凭据管理器:

function convertFrom(value, radix) {
    return [...value.toString()]
        .reduce((r, v) => r * BigInt(radix) + BigInt(parseInt(v, radix)), 0n);
}

function convertTo(value, radix) {
    var result = '',
        r = BigInt(radix);
     
    do {
        result = (value % r).toString(36) + result;
        value = value / r;
    } while (value);
    return result;
}

var secretCode = "0vo8fz4kvy03",
    value = convertFrom(secretCode, 36),
    encode = convertTo(value, 36);

console.log(value.toString());
console.log(encode.toString());

显示为:$ git config --system --list

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

  1. 打开钥匙串访问
  2. github.com
  3. 中搜索关键字
  4. 删除了所有找到的键
  5. 重新启动笔记本电脑
  6. 完成
相关问题