当我想从私人仓库安装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。没有任何帮助。
答案 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
因此,我按照以下步骤操作: