【问题标题】:Xcode Authentication failed because no credentials were provided after changing iOS version to 14Xcode 身份验证失败,因为将 iOS 版本更改为 14 后未提供凭据
【发布时间】:2021-12-03 13:15:41
【问题描述】:

我将应用部署版本从 iOS 13 更改为 iOS 14,但在构建应用时遇到错误。

尽管所有这些包都是公开的,但它一直在谈论没有提供凭据。我还设置了 github 凭据并一直使用它们。

我尝试删除 github 帐户,更改 ssh -> http,但似乎没有任何帮助。

当我尝试使用 Swift 包管理器添加新的公共包时,也会出现同样的问题

有什么建议吗?

【问题讨论】:

    标签: xcode xcode12


    【解决方案1】:

    检查你的 git 配置文件首先写你的终端:git config --global --edit

    它应该在那里"https://github.com/:而不是url.git@github.com.

    【讨论】:

      【解决方案2】:

      我遇到了类似的问题,我收到的错误是:

      xcodebuild:错误:无法解析包依赖项:
      身份验证失败,因为缺少凭据。
      找不到目标“AddonManager”的工件。

      解决方案是使用 RSA 而不是 Ed25519 生成我的 SSH 密钥,似乎 Xcode 无法读取我的 Ed25519 格式的 SSH 密钥。

      我使用 legacy RSA 算法 (as noted in the github docs) 重新生成了我的 SSH,并将其添加到我的本地计算机,这在下一次构建时修复了错误。

      https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

      【讨论】:

        猜你喜欢
        • 2020-01-29
        • 1970-01-01
        • 2019-09-11
        • 2018-11-28
        • 2020-07-22
        • 2021-11-29
        • 2019-04-26
        • 2020-01-11
        • 2019-07-29
        相关资源
        最近更新 更多