Repository navigation
[Error installing boost] Verification checksum was incorrect, expected #42110
Description
Activity
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
Reacted by Ivan StelmakhOk, created a simple patch for this for RN 0.73.1, but everyone could do this for their version
-
Install
patch-package:npm install --save-dev patch-package postinstall-postinstall
-
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
-
Create a Patch:
- Run
npx patch-package react-nativeto create a patch file based on your changes. This command generates a patch file in a directory calledpatches/.
- Run
-
Apply the Patch Automatically:
- Modify your
package.jsonto apply the patch after installation. Add the following to your scripts section:"scripts": { "postinstall": "patch-package" }
- Now, whenever you run
npm install,patch-packagewill automatically apply the patch to theboost.podspecfile.
- Modify your
Reacted by InquestApp-Admin and Agrit TiwariReacted by Tom Atterton, DONGYEONG and Víctor Hugo Vázquez GómezReacted by Remi Guerin-
Duplicates #42109
It started to happen again today....
It started to happen again today....
Yeah happens to me again too...
yea i am having same issues damn...
Same issue : Trying to build via bitrise
Reacted by theRealShengme toooo,
Same 🙃
same
Same here.
Same 🥺
3 remaining items
same here..... using react-native version 0.70.6
Same here.
same here. react native v 0.69.9
Same here. react native version 0.72.6
Same here. react native version 0.73.1, can reopen issuse ???
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
Same here
Happens again from yesterday.
Happening it again, just now
Facing the same issue again
Guys!
DO NOT REPLACE HASHSUM
Replace this url
https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2with
https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2Reacted by mattijsf, Govind Maheshwari, Luka Babunadze, mihaiboldpastilla and AndreiHere is a PR with the fix #42118, the RN team are on it already.
More info- #42109 (comment)
Reacted by CrareGuys!
DO NOT REPLACE HASHSUM
Replace this url https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2
with https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2
Thanks!
We have an official workaround and a pinned issue: #42180.
I'm locking this conversation.- locked as resolved and limited conversation to collaborators
on Jan 8, 2024
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 AwesomeProjectcd ios & pod installReact Native Version
0.73.1
Affected Platforms
Runtime - iOS
Output of
npx react-native infoStacktrace or Logs
Reproducer
https://github.com/kdn0325/AwesomeProject-bug-report
Screenshots and Videos