【问题标题】:`carthage bootstrap` command results in `API rate limit exceeded` error in Github Actions workflow`carthage bootstrap` 命令导致 Github Actions 工作流程中出现 `API rate limit exceeded` 错误
【发布时间】:2021-11-20 00:53:09
【问题描述】:

我刚刚移动了我的 Xcode 项目以使用 Carthage 而不是 CocoaPods 作为我的依赖项管理器,因此我正在尝试更新我的 GitHub Actions CI 工作流程以下载依赖项二进制文件。

但是,在我的工作流程中运行carthage bootstrap --platform iOS --use-xcframeworks 之后,它最终给出了输出和错误:

*** Cloning realm-cocoa
*** Skipped downloading realm-cocoa binary due to the error:
    "API rate limit exceeded for 199.19.85.26. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"

如何解决此错误?

【问题讨论】:

    标签: ios github-actions carthage


    【解决方案1】:

    我想通了!事实证明,在运行carthage bootstrap 命令时,您需要将GITHUB_TOKEN 指定为环境变量。这是我工作流程中的更新步骤:

    - name: Download Carthage dependencies
      env:
        GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: carthage bootstrap --platform iOS --use-xcframeworks
    

    作为参考,这个 Carthage issuepull request 帮助我找到了答案。

    【讨论】:

    猜你喜欢
    • 2015-01-03
    • 1970-01-01
    • 1970-01-01
    • 2021-10-19
    • 2020-01-09
    • 2013-12-15
    • 1970-01-01
    • 2014-11-11
    • 1970-01-01
    相关资源
    最近更新 更多