You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error installing boost Verification checksum was incorrect #843
I'm developing a Mobile app with React Native (0.73.1) and for building the app I need to install the pods. The pods contains installing boos, see this file.
When I check this site I see the checksum should be 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e
When I do this on my Mac
curl -sL https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 | shasum -a 256
5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff -
I get a different checksum
Please let me know what I need to provide more to debug this
Reacted by Tomasz Oponowicz, yebun91, bogmihut8, Olzhas Alexandrov, Sarun, Patrick van Broeckhuijsen, Asaf Korem, tomerdesser, Oleksandr, Ahmed Elzeny and 49 more
Reacted by David McAfee, Sunjoo Lee, Mahmudul Hasan, Harald Nordgren and Ganesh7749
I'm developing a Mobile app with React Native (0.73.1) and for building the app I need to install the pods. The pods contains installing boos, see this file.
Reacted by Haritha Senevirathne, Daniel Amram, Tyler Canton, wanjarus, nhatduy2k, David McAfee, Robinson, Matt Higgins, RichardLiu, Vishu0704 and 6 more
Just replace 83 with 76 and 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e with f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41
Changing the checksum without knowing what happened isn’t a good solution. The checksum ensures the integrity and authenticity of your downloaded file, protecting against corrupted, incomplete, or maliciously altered files.
If you bypass the checksum verification, you risk introducing security vulnerabilities, stability issues, or subtle bugs in your application. These can be challenging to diagnose and may compromise your application or user data.
So there’s a reason why they use checksums and it's up to you all if you want to skip it 😅
Reacted by Víctor Hugo Vázquez Gómez, Levent Ozturk, Maurice (mausy5043) Hendrix, Alejandro Turriza, Chaejin Kim, Chethiya Kusal, Daniel Gospodinow, Florian Berchtold, Carlos Vieira, Mohammad Shbool and 11 more
# 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.newdo |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_versionsspec.requires_arc=falsespec.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.newdo |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/843spec.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_versionsspec.requires_arc=falsespec.module_name='boost'spec.header_dir='boost'spec.preserve_path='boost'end
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/.
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.
Reacted by Damilola Adekunle, Tommy Bowditch, Yu Takahashi, WH, Patrick Fay, Víctor Hugo Vázquez Gómez, 김지훈, Satya Prakash Goyal, Jason Pan, chaimPaneth and 92 more
Reacted by Oleg Derecha, Nick Pham, David McAfee, Sunjoo Lee, Kevin Upton, <EstebanEscobar />, sonitkumar123 and Hiago - Mb Labs
Reacted by Elson Ramos, Aristotel Paskalov, Loreleen Mae C. Sablot, Oleg Derecha, Florin Dobre, Nick Pham, David McAfee, Yulianto Saparudin, Justin Wheeler, Kenan Allakhverdiev and 12 more
Reacted by Oleg Derecha, Florin Dobre, Julien, Nick Pham, David McAfee, Omal Perera, Kenan Allakhverdiev, Engin Koyuncu, pankaj-gkm, Sunjoo Lee and 10 more
Reacted by Oleg Derecha, Florin Dobre, Nick Pham, David McAfee, Justin Wheeler, Simon G. Tsegay, Kenan Allakhverdiev, pankaj-gkm, Sunjoo Lee, Kevin Upton and 5 more
Reacted by Agrit Tiwari, ubaid khatlani, Abdelilah El mansouri, Ofry Linkovsky, Sarith Gunathilake, nepal, Mary Snopok, RobertMaksymow, Marcin Wydra and Mateus Cazuza
also after doing this change if you get checksum mismatch issue, replace 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e this with expected checksum
This issue is fixed in React Native 0.75, (see fix here: react/react-native@d274826). I have opened a cherry-pick request to hopefully back-merge the fix to older versions of React Native (0.71-0.74) here: reactwg/react-native-releases#902
If this pick-request gets rejected (fairly likely as releases of RN <=0.76.x are now unsupported) then this fix should still work for older versions such as RN 0.71.
Activity
RahulSingh225 commentedon Dec 31, 2023
Facing the same issue on M1 machine
vinpro24 commentedon Dec 31, 2023
move to node_modules/react-native/third-party-podspecs.
Only change line
spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2',
:sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' }
to
spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2',
:sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' }
Maybe jfrog close their server
codeion commentedon Dec 31, 2023
I have the same issue with React Native 0.72.7
Error installing boost
Verification checksum was incorrect, expected f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff
boost version 1.76.0
tecmusti commentedon Dec 31, 2023
Just replace 83 with 76 and 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e with f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41
#843 (comment)
wswebcreation commentedon Dec 31, 2023
Changing the checksum without knowing what happened isn’t a good solution. The checksum ensures the integrity and authenticity of your downloaded file, protecting against corrupted, incomplete, or maliciously altered files.
If you bypass the checksum verification, you risk introducing security vulnerabilities, stability issues, or subtle bugs in your application. These can be challenging to diagnose and may compromise your application or user data.
So there’s a reason why they use checksums and it's up to you all if you want to skip it 😅
tecmusti commentedon Dec 31, 2023
We are not changing the checksum. Original link is broken, just replacing it with sourceforge link.
wswebcreation commentedon Dec 31, 2023
Ok, created a simple patch for this for RN 0.73.1, but everyone could do this
Install
patch-package:Modify
boost.podspec:change
to
Create a Patch:
npx patch-package react-nativeto create a patch file based on your changes. This command generates a patch file in a directory calledpatches/.Apply the Patch Automatically:
package.jsonto apply the patch after installation. Add the following to your scripts section:npm install,patch-packagewill automatically apply the patch to theboost.podspecfile.ronenempathy commentedon Dec 31, 2023
facing the same issue with react-native 0.68.1.
any workaround for this?
wswebcreation commentedon Dec 31, 2023
Yes:
node_modules/react-native/third-party-podspecsfrom the root of your projectboost.podspecfor the version you need to useronenempathy commentedon Dec 31, 2023
@wswebcreation since we are not pushing node_modules, is there any other ways to overcome this. this issue interrupts our CI as well.
wswebcreation commentedon Dec 31, 2023
@ronenempathy
You are not creating a new module, you are creating a patch in your project that will be installed when you do the
npm iThe steps mentioned above create the patch, here's how it looks like in my case
gregavola commentedon Dec 31, 2023
What about for build systems like AppCenter, where node_modules are created at build time?
dafilmorais commentedon Dec 31, 2023
Doesn't work. It just hangs "installing boost (1.76.0)"
Using sourceforge
wswebcreation commentedon Dec 31, 2023
What do you mean?
wswebcreation commentedon Dec 31, 2023
Sorry, can't help with that
114 remaining items
AliHaidar110 commentedon Mar 11, 2025
yep try using a vpn solved it for me after that I had to turn it of for another package :)
https://github.com/boostorg/boost/issues/843#issuecomment-1872943124
https://github.com/boostorg/boost/issues/843#issuecomment-1872943124
gauravsbagul commentedon Apr 8, 2025
also after doing this change if you get checksum mismatch issue, replace
6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8ethis with expected checksummichtntbrighte commentedon Apr 9, 2025
How to fix it for now is:
In my case I'm using 1.76, the url I use is https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2
Reference: https://www.boost.org/users/history/version_1_76_0.html
MadelineCollier commentedon Apr 18, 2025
This issue is fixed in React Native
0.75, (see fix here: react/react-native@d274826). I have opened a cherry-pick request to hopefully back-merge the fix to older versions of React Native (0.71-0.74) here: reactwg/react-native-releases#902If this pick-request gets rejected (fairly likely as releases of RN
<=0.76.xare now unsupported) then this fix should still work for older versions such as RN0.71.tibic commentedon Apr 19, 2025
我遇到同样的问题,真令人抓狂
sahilkashyap64 commentedon Apr 19, 2025
if you are still getting the error
try this solution , adding a function on top of the podfile
#996
guruatdigni commentedon May 21, 2025
don't go for pod install or cocopod update. i have spend 4 to 5 hours fixed by myself.
https://www.boost.org
use this website and select the version you have used currently pick the checksum (SHA256) and copy the link.
wenyiweb commentedon May 23, 2025
npm install --save-dev patch-package postinstall-postinstall
package.json scripts add "postinstall": "patch-package"
modify node_modules/react-native/third-party-podspecs/boost.podspec
spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2',
:sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
npx patch-package react-native
cd ios && pod install
GourabSanyal commentedon May 23, 2025
was fixed when I changed the react native version from
71.14.0to71.15.0.Did regular cleaning and reinstall, and everything worked fine.
also you can check this out : react/react-native#42180
rodrigotoledo commentedon Jun 3, 2025
This is a really good code to solve the problem.
iZooto-App-Push commentedon Aug 8, 2025
https://stackoverflow.com/questions/77738691/error-installing-boost-verification-checksum-was-incorrect-expected
follow this link, fixed now bugs
mustafazeb381-123 commentedon Aug 10, 2025
@wswebcreation thankyou so much sir you save my day
Samama-Zargham commentedon Sep 29, 2025
**- Go to node_modules/react-native/third-party-podspecs from the root of your project
See this line spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2',
:sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' }
only change this url https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2
to this
https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2
**and than make patch by installing
patch-package postinstall-postinstall
Run this Comand to create patch
npx patch-package react-native
and now BOOM😃 install pods by running
cd ios pod install**