Skip to content

[Error installing boost] Verification checksum was incorrect, expected  #42110

Description

@kdn0325

Description

[!] Error installing boost
Verification checksum was incorrect, expected f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff

Error occurred during React Native pod install. Please help

Steps to reproduce

npx react-native@latest init AwesomeProject

cd ios & pod install

React Native Version

0.73.1

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.1.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 355.98 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman:
    version: 2023.11.27.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/abel/.gem/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.1 AI-221.6008.13.2211.9619390
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/abel/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.1
    wanted: 0.73.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

 abel@Abelui-MacBookPro  ~/Desktop/AwesomeProject   main  >....
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.1 AI-221.6008.13.2211.9619390
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/abel/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.1
    wanted: 0.73.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

[!] Error installing boost
Verification checksum was incorrect, expected 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff

Reproducer

https://github.com/kdn0325/AwesomeProject-bug-report

Screenshots and Videos

스크린샷 2023-12-31 오후 6 04 02

Activity

  1. wswebcreation commented on Dec 31, 2023

    @wswebcreation

    I've filed this ticket for the Boost project (assuming I'm right)

    Curling the file also gives a different checksum

    curl -sL https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 | shasum -a 256
    
    5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff  -

    It was also asked here on SO.

    Happening on my Mac and also on GitHub Actions

  2. wswebcreation commented on Dec 31, 2023

    @wswebcreation

    Ok, created a simple patch for this for RN 0.73.1, but everyone could do this for their version

    1. Install patch-package:

      npm install --save-dev patch-package postinstall-postinstall
    2. Modify boost.podspec:

    change

    # Copyright (c) Meta Platforms, Inc. and affiliates.
    #
    # This source code is licensed under the MIT license found in the
    # LICENSE file in the root directory of this source tree.
    
    Pod::Spec.new do |spec|
      spec.name = 'boost'
      spec.version = '1.83.0'
      spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
      spec.homepage = 'http://www.boost.org'
      spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
      spec.authors = 'Rene Rivera'
      spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2',
                      :sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' }
    
      # Pinning to the same version as React.podspec.
      spec.platforms = min_supported_versions
      spec.requires_arc = false
    
      spec.module_name = 'boost'
      spec.header_dir = 'boost'
      spec.preserve_path = 'boost'
    end

    to

    # Copyright (c) Meta Platforms, Inc. and affiliates.
    #
    # This source code is licensed under the MIT license found in the
    # LICENSE file in the root directory of this source tree.
    
    Pod::Spec.new do |spec|
      spec.name = 'boost'
      spec.version = '1.83.0'
      spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
      spec.homepage = 'http://www.boost.org'
      spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
      spec.authors = 'Rene Rivera'
      # Patched due to issue https://github.com/boostorg/boost/issues/843
      spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2',
                      :sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' }
    
      # Pinning to the same version as React.podspec.
      spec.platforms = min_supported_versions
      spec.requires_arc = false
    
      spec.module_name = 'boost'
      spec.header_dir = 'boost'
      spec.preserve_path = 'boost'
    end
    1. Create a Patch:

      • Run npx patch-package react-native to create a patch file based on your changes. This command generates a patch file in a directory called patches/.
    2. Apply the Patch Automatically:

      • Modify your package.json to apply the patch after installation. Add the following to your scripts section:
        "scripts": {
          "postinstall": "patch-package"
        }
      • Now, whenever you run npm install, patch-package will automatically apply the patch to the boost.podspec file.
  3. cortinico commented on Jan 2, 2024

    @cortinico
    Contributor

    Duplicates #42109

  4. abdullahwt commented on Jan 2, 2024

    @abdullahwt
  5. netanelz-amdocs commented on Jan 7, 2024

    @netanelz-amdocs

    It started to happen again today....

  6. OmerWow commented on Jan 7, 2024

    @OmerWow

    It started to happen again today....

    Yeah happens to me again too...

  7. mpanac commented on Jan 7, 2024

    @mpanac

    yea i am having same issues damn...

  8. OmkarK45 commented on Jan 7, 2024

    @OmkarK45

    Same issue : Trying to build via bitrise

  9. hodayaGruzm commented on Jan 7, 2024

    @hodayaGruzm

    me toooo,

  10. codebycarlos commented on Jan 7, 2024

    @codebycarlos

    Same 🙃

  11. compwron commented on Jan 7, 2024

    @compwron

    same

  12. rieger-jared commented on Jan 7, 2024

    @rieger-jared

    Same here.

  13. minkgkyaw9899 commented on Jan 8, 2024

    @minkgkyaw9899

    Same 🥺

  14. 3 remaining items

  15. thtRajasthaniGuy commented on Jan 8, 2024

    @thtRajasthaniGuy

    same here..... using react-native version 0.70.6

  16. doyunnn commented on Jan 8, 2024

    @doyunnn

    Same here.

  17. dsumayan21 commented on Jan 8, 2024

    @dsumayan21

    same here. react native v 0.69.9

  18. shifanpark commented on Jan 8, 2024

    @shifanpark

    Same here. react native version 0.72.6

  19. doanhtrinh95 commented on Jan 8, 2024

    @doanhtrinh95

    Same here. react native version 0.73.1, can reopen issuse ???

  20. mattijsf commented on Jan 8, 2024

    @mattijsf
    Contributor

    I don't see react-native's CI tests failing but I think that's mainly because the workflows save/restore cocoapod cache so they don't fetch boost from the original source basically

  21. pietro-marrone-dka commented on Jan 8, 2024

    @pietro-marrone-dka

    Same here

  22. matteodanelli commented on Jan 8, 2024

    @matteodanelli

    Happens again from yesterday.

  23. loreleensablot commented on Jan 8, 2024

    @loreleensablot

    Happening it again, just now

  24. vishal-nayak07 commented on Jan 8, 2024

    @vishal-nayak07

    Facing the same issue again

  25. ts-ign0re commented on Jan 8, 2024

    @ts-ign0re
  26. Johan-dutoit commented on Jan 8, 2024

    @Johan-dutoit
    Contributor

    Here is a PR with the fix #42118, the RN team are on it already.

    More info- #42109 (comment)

  27. cipolleschi commented on Jan 8, 2024

    @cipolleschi
    Contributor

    We have an official workaround and a pinned issue: #42180.
    I'm locking this conversation.

  28. locked as resolved and limited conversation to collaborators on Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions