使用要求密码的Bitbucket私有仓库与Carthage

7
我正在设置一个框架,我刚创建并上传到了 Bitbucket 的私有仓库中。
我已经将以下内容添加到了 Cartfile 中:
git "https://myUsername@bitbucket.org/myUsername/myFramework.git"
然而,当我运行 carthage update --platform iOS 时,出现了以下错误:
A shell task (/usr/bin/env git clone --bare --quiet https://myUsername@bitbucket.org/myUsername/myFramework.git /Users/jack/Library/Caches/org.carthage.CarthageKit/dependencies/myFramework) failed with exit code 128: fatal: could not read Password for 'https://myUsername@bitbucket.org': terminal prompts disabled
请问如何解决这个问题?
1个回答

3

切换到在Bitbucket上使用SSH密钥的账户。 然后使用以下Carthage命令:

git "git@bitbucket.org:<acct>/<repo>.git"

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接