【问题标题】:brew install fbsimctl - SHA256 mismatchbrew install fbsimctl - SHA256 不匹配
【发布时间】:2017-09-19 03:31:55
【问题描述】:

我正在尝试设置wix/detox,其中一项要求是通过自制软件安装fbsimctl

这是我的控制台输出:

==> Installing fbsimctl from facebook/fb
==> Downloading https://github.com/facebook/FBSimulatorControl/tarball/v0.4.0
==> Downloading from https://codeload.github.com/facebook/FBSimulatorControl/legacy.tar.gz/v0.4.0
########################################################################     100.0%
Error: SHA256 mismatch
Expected: 5d2ed56047f2b4b3f5f0804545c6730876be2372a834e70bc88a4cb9d4253e19
Actual: 4a8bb8aed15f756aeb57e4a1f8724e40a3dfaa27740ae1644021386ab64bd9fb
Archive: /Users/dan/Library/Caches/Homebrew/fbsimctl-0.4.0.0
To retry an incomplete download, remove the file above.

然后我跑了:

rm -rf /Users/dan/Library/Caches/Homebrew/fbsimctl-0.4.0.0

然后:

brew update && brew cleanup && brew cask cleanup

然后再一次:

export CODE_SIGNING_REQUIRED=NO && brew install fbsimctl

但我仍然得到上述控制台输出。

【问题讨论】:

    标签: shell homebrew


    【解决方案1】:

    文件的checksum与公式不符,可以通过下载文件来验证:

    $ curl -L -O https://github.com/facebook/FBSimulatorControl/tarball/v0.4.0
    

    然后得到校验和:

    $ $ openssl dgst -sha256 v0.4.0 
    SHA256(v0.4.0)= 4a8bb8aed15f756aeb57e4a1f8724e40a3dfaa27740ae1644021386ab64bd9fb
    

    我建议创建一个拉取请求(如果您知道/信任并确保来源正确),但最好联系开发人员https://github.com/facebook/homebrew-fb/blob/master/fbsimctl.rb 关于此问题,校验和的主要思想是保证数据完整性。

    【讨论】:

    • 非常感谢您的回答。我没有想到检查 GitHub。已经有一个 PR 打算修复它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-26
    • 1970-01-01
    • 2022-01-16
    • 2016-12-22
    • 2018-07-26
    • 2020-10-18
    相关资源
    最近更新 更多