迦太基更新错误:"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.