Why this happens
When you run pod install in a React Native iOS project, CocoaPods downloads the Boost C++ libraries from a remote source defined in boost.podspec. For React Native versions 0.72.x and 0.73.0–0.73.1, that source was https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2.
The JFrog Artifactory instance began serving a corrupted or different archive than the one whose SHA-256 checksum is hard-coded in the podspec. CocoaPods verifies the download against that checksum, sees a mismatch, and aborts with:
Verification checksum was incorrect, expected 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e, got 5e89103d9b70bba5c91a794126b169cb67654be2051f90cf7c22ba6893ede0ff
The root cause is a repository-side problem, not a local configuration issue. The React Native team acknowledged it in issue #42110 and #42180 and redirected the podspec to the official Boost archives.
How to fix it
1. Upgrade React Native (recommended)
The cleanest fix is to use a React Native version that already points to the reliable archives.boost.io mirror.
- React Native 0.72.x → upgrade to 0.72.9 or later
- React Native 0.73.x → upgrade to 0.73.2 or later
Run the upgrade command for your package manager, then reinstall pods:
# npm
npm install react-native@0.73.2
# or yarn
yarn upgrade react-native@0.73.2
cd ios && pod install
After upgrading, the boost.podspec in node_modules/react-native/third-party-podspecs/ will contain the correct URL and checksum, so pod install succeeds without manual edits.
2. Patch the podspec locally (temporary workaround)
If you cannot upgrade immediately, edit the podspec file to use the official Boost archive mirror.
- Open
node_modules/react-native/third-party-podspecs/boost.podspecin a text editor. - Locate the
sourceline (around line 12) that reads:
ruby
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2' - Replace it with:
ruby
'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2' - Save the file and run
cd ios && pod installagain.
Note: This change lives inside
node_modules/and will be lost if you reinstall dependencies. Consider usingpatch-packageto persist the edit acrossnpm install/yarn installruns.
3. Use patch-package to make the workaround durable
If you must stay on an affected React Native version, automate the podspec edit so it survives dependency reinstalls.
- Install patch-package:
bash
npm install --save-dev patch-package
# or
yarn add --dev patch-package - Make the podspec change described in fix #2.
- Generate a patch:
bash
npx patch-package react-native - Add a
postinstallscript topackage.json:
json
"scripts": {
"postinstall": "patch-package"
}
Now every npm install or yarn install will re-apply the corrected URL automatically.
How to prevent it
- Pin React Native to a patched version (0.72.9+, 0.73.2+) in
package.jsonso new contributors get the fixed podspec. - Run
pod installin CI after every dependency change to catch regressions early. - Avoid committing
node_modules/; rely on lockfiles andpatch-packagefor reproducible builds. - Monitor the React Native release notes for similar third-party dependency migrations.
FAQ
Does this error affect Android builds?
No. The Boost checksum verification only runs during the iOS CocoaPods install step. Android builds fetch Boost through Gradle and are unaffected.
Can I just delete the checksum from the podspec?
Removing the sha256 line would bypass verification, but it defeats the security purpose of checksum validation. Use the URL replacement instead; it keeps verification intact while pointing to a healthy mirror.
Will pod repo update fix the problem?
No. pod repo update refreshes the CocoaPods spec repository (the index of available pods), not the external download URL or checksum defined inside a specific podspec. The fix must come from the podspec itself or a React Native upgrade.**,
Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.