Skip to content

Commit 2075371

Browse files
committed
fix: remove sha checksum temporarilly
1 parent aad7436 commit 2075371

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

example/ios/Podfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@ require Pod::Executable.execute_command('node', ['-p',
55
{paths: [process.argv[1]]},
66
)', __dir__]).strip
77

8-
# Fix boost checksum issue BEFORE CocoaPods loads the podspec
8+
# Fix boost checksum issue by removing SHA verification
99
# https://github.com/facebook/react-native/issues/37748
1010
boost_path = File.join(__dir__, '../node_modules/react-native/third-party-podspecs/boost.podspec')
1111
if File.exist?(boost_path)
1212
boost_spec = File.read(boost_path)
13-
if boost_spec.include?('boostorg.jfrog.io')
13+
if boost_spec.include?(':sha256')
14+
# Remove the sha256 checksum to avoid verification errors
1415
boost_spec = boost_spec.gsub(
15-
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
16-
'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2/download'
16+
/,\s*:sha256\s*=>\s*['"][^'"]*['"]/,
17+
''
1718
)
1819
File.write(boost_path, boost_spec)
19-
puts '✅ Patched boost podspec to use sourceforge mirror'
20+
puts '✅ Patched boost podspec to skip checksum verification'
2021
end
2122
end
2223

0 commit comments

Comments
 (0)