【问题标题】:Carthage error "Bad credentials"迦太基错误“凭据错误”
【发布时间】:2017-01-27 10:58:57
【问题描述】:

说明:https://github.com/watson-developer-cloud/ios-sdk

错误:

*** Skipped downloading ios-sdk.framework binary due to the error:
"Bad credentials"

The following build commands failed:
    CompileSwift normal arm64
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

【问题讨论】:

标签: xcode7 carthage


【解决方案1】:

我得到了解决 Willhains 提出的 Carthage 问题的解决方案:

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

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

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

  2. 通过 HTTPS 克隆私有仓库。

  3. OSX 将提示您输入 GitHub 密码。
  4. 运行 Carthage 更新。


您可以从 Keychain 访问和使用的 GitHub 凭证中删除..
希望这会有所帮助

【讨论】:

  • 我从钥匙串访问中删除了 github 凭据
  • 从使用 OSX KeyChain Access 应用程序中删除 github 凭据对我有用 :-)
【解决方案2】:

就我而言:

我更改了我的 Github 用户名,并且忘记更改存储在 Keychain Access 中的本地凭据(仅用户名)。

请务必将用户名更改为您的新用户名,瞧!

【讨论】:

    猜你喜欢
    • 2018-04-27
    • 2016-03-23
    • 1970-01-01
    • 1970-01-01
    • 2016-01-04
    • 1970-01-01
    • 2017-07-07
    • 2020-07-07
    • 2018-03-31
    相关资源
    最近更新 更多