迦太基更新错误:"GitHub API请求失败:凭据错误" [英] Carthage update error: "GitHub API request failed: Bad credentials"

查看:239
本文介绍了迦太基更新错误:"GitHub API请求失败:凭据错误"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的购物车文件:

# Kanna HTML parsing library
github "tid-kijyun/Kanna" ~> 1.0.0

# Realm database/ORM
github "realm/realm-cocoa"

当我运行carthage update时,我得到了:

When I run carthage update I get this:

$ carthage --version
Unrecognized command: '--version'. See `carthage help`.

$ carthage update --platform OSX
*** Fetching realm-cocoa
*** Fetching Kanna
*** Skipped downloading realm-cocoa.framework binary due to the error:
    "GitHub API request failed: Bad credentials"
*** Checking out realm-cocoa at "v0.98.3"
*** Skipped downloading Kanna.framework binary due to the error:
    "GitHub API request failed: Bad credentials"
*** Checking out Kanna at "1.0.5"
*** xcodebuild output can be found in /var/folders/p2/c_d5mx0s3gl45165btrpx1fm0000gn/T/carthage-xcodebuild.KVYEob.log
*** Building scheme "Kanna_OSX" in Kanna.xcworkspace
*** Building scheme "RealmSwift" in RealmExamples.xcworkspace
*** Building scheme "Realm" in RealmExamples.xcworkspace

因此,它似乎确实可以构建Kanna和Realm,但是我收到有关错误的GitHub API凭据的错误.怎么了?

So it does seem to build both Kanna and Realm, but I'm getting an error about bad GitHub API credentials. What is wrong?

推荐答案

我收到了迦太基问题我提出:

  1. 编辑~/.gitconfig并添加以下内容:

[credential] helper = osxkeychain [credential "https://github.com"] username = willhains

[credential] helper = osxkeychain [credential "https://github.com"] username = willhains

(用您的GitHub用户ID替换willhains.)

(Replace willhains with your GitHub user ID.)

通过HTTPS克隆私人存储库.

Clone a private repo via HTTPS.

OSX将提示您输入GitHub密码.

OSX will prompt for your GitHub password.

运行carthage update.

这篇关于迦太基更新错误:"GitHub API请求失败:凭据错误"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆