git - 将 Bitbucket 私有(private)存储库与要求密码的 Carthage 结合使用

标签 git bitbucket carthage

我正在设置我刚刚创建的框架,然后将其上传到 Bitbucket 上的私有(private)存储库。

我已将以下内容添加到我的 Cartfile 中:

混帐“https://myUsername@bitbucket.org/myUsername/myFramework.git

但是,当我运行 carthage update --platform iOS 时,出现以下错误:

shell 任务 (/usr/bin/env git clone --bare --quiet https://myUsername@bitbucket.org/myUsername/myFramework.git/Users/jack/Library/Caches/org.carthage.CarthageKit/dependencies/myFramework) 失败,退出代码为 128: 致命:无法读取“https://myUsername@bitbucket.org”的密码': 终端提示已禁用

你如何建议我让它工作?

最佳答案

将您在 Bitbucket 上的帐户切换为使用 ssh key 。 然后使用迦太基线:

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

关于git - 将 Bitbucket 私有(private)存储库与要求密码的 Carthage 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37898570/

相关文章:

iOS Carthage "project has no shared schemes"即使使用手动 xcodebuild

git - 压缩特定标签之前的完整历史记录

git - macOS Mojave : invalid active developer path after updating to Mojave from High Sierra

git - 如何从 git repo 添加特定文件夹作为 git 子模块?

rest - Bitbucket API 公共(public)问题创建

git - bitbucket 上的 pull 请求不会触发 bamboo 上的构建

git - 做一个 git bisect 并且其中一个提交没有构建

python - hg 使用 fabric 从 bitbucket 中拉出

ios - 在 Xcode6.3 中使用 Carthage 的 Alamofire 和 SwiftyJSON

swift - 在主项目中找不到链接到 Cocoapod 的静态框架