react-native: [Error installing boost] Verification checksum was incorrect, expected
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
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 8
- Comments: 30 (4 by maintainers)
Ok, created a simple patch for this for RN 0.73.1, but everyone could do this for their version
Install
patch-package
:Modify
boost.podspec
:change
to
Create a Patch:
npx patch-package react-native
to create a patch file based on your changes. This command generates a patch file in a directory calledpatches/
.Apply the Patch Automatically:
package.json
to apply the patch after installation. Add the following to your scripts section:npm install
,patch-package
will automatically apply the patch to theboost.podspec
file.Guys!
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
Here is a PR with the fix https://github.com/facebook/react-native/pull/42118, the RN team are on it already.
More info- https://github.com/facebook/react-native/issues/42109#issuecomment-1880663873
Same issue : Trying to build via bitrise
I’ve filed this ticket for the Boost project (assuming I’m right)
Curling the file also gives a different checksum
It was also asked here on SO.
Happening on my Mac and also on GitHub Actions