Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kdn0325 opened this issue Dec 31, 2023 · 30 comments
Closed

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

kdn0325 opened this issue Dec 31, 2023 · 30 comments

Comments

@kdn0325
Copy link

kdn0325 commented Dec 31, 2023

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
@wswebcreation
Copy link

wswebcreation commented Dec 31, 2023

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

@wswebcreation
Copy link

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.

@cortinico
Copy link
Contributor

Duplicates #42109

@abdullahwt

This comment was marked as off-topic.

@netanelz-amdocs
Copy link

It started to happen again today....

@OmerWow
Copy link

OmerWow commented Jan 7, 2024

It started to happen again today....

Yeah happens to me again too...

@mpanac
Copy link

mpanac commented Jan 7, 2024

yea i am having same issues damn...

@OmkarK45
Copy link

OmkarK45 commented Jan 7, 2024

Same issue : Trying to build via bitrise

@hodayaGruzm
Copy link

me toooo,

@codebycarlos
Copy link

Same 🙃

@compwron
Copy link

compwron commented Jan 7, 2024

same

@rieger-jared
Copy link

Same here.

@minkgkyaw9899
Copy link

Same 🥺

@markallanevans
Copy link

Just happened to me as well (RN 0.71.14)

@tushar-8750
Copy link

just happened for me as well

@LasithaOffice
Copy link

LasithaOffice commented Jan 8, 2024

Same here. React Native 0.73.1. Just created the project a few minutes ago

@thtRajasthaniGuy
Copy link

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

@doyunnn
Copy link

doyunnn commented Jan 8, 2024

Same here.

@dsumayan21
Copy link

same here. react native v 0.69.9

@shifanpark
Copy link

Same here. react native version 0.72.6

@doanhtrinh95
Copy link

doanhtrinh95 commented Jan 8, 2024

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

@mattijsf
Copy link
Contributor

mattijsf commented Jan 8, 2024

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

@pietro-marrone-dka
Copy link

Same here

@matteodanelli
Copy link

Happens again from yesterday.

@loreleensablot
Copy link

Happening it again, just now

@vishal-nayak07
Copy link

Facing the same issue again

@ts-ign0re
Copy link

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

@Johan-dutoit
Copy link
Contributor

Johan-dutoit commented Jan 8, 2024

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

More info- #42109 (comment)

@LukaBabunadze
Copy link

@cipolleschi
Copy link
Contributor

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

@facebook facebook locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests