1.0.0 # Realm database/ORM -6ren">
gpt4 book ai didi

swift - 迦太基更新错误 : "GitHub API request failed: Bad credentials"

转载 作者:搜寻专家 更新时间:2023-10-31 08:32:35 26 4
gpt4 key购买 nike

这是我的 Cartfile:

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

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

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

$ 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 凭据的错误。怎么了?

最佳答案

我得到了响应 Carthage issue 的解决方案我提出:

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


    [凭据]
    助手 = osxkeychain
    [凭据“https://github.com”]
    用户名 = willhains

    (将 willhains 替换为您的 GitHub 用户 ID。)

  2. 通过 HTTPS 克隆私有(private)存储库。

  3. OSX 将提示您输入 GitHub 密码。

  4. 运行 carthage update

关于swift - 迦太基更新错误 : "GitHub API request failed: Bad credentials",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35790585/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com