Skip to content

Commit 5cf5bd8

Browse files
committed
fix:boost download issue by using SourceForge mirror instead of JFrog
1 parent b38a021 commit 5cf5bd8

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

example/ios/Podfile

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

8-
# Fix boost checksum issue by removing SHA verification
8+
# Fix boost download issue by using SourceForge mirror instead of JFrog
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+
14+
# Replace JFrog URL with SourceForge mirror
15+
if boost_spec.include?('boostorg.jfrog.io')
16+
boost_spec = boost_spec.gsub(
17+
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
18+
'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2'
19+
)
20+
File.write(boost_path, boost_spec)
21+
puts '✅ Patched boost podspec to use archives.boost.io mirror'
22+
end
23+
24+
# Remove checksum as backup measure
25+
boost_spec = File.read(boost_path)
1326
if boost_spec.include?(':sha256')
14-
# Remove the sha256 checksum to avoid verification errors
1527
boost_spec = boost_spec.gsub(
1628
/,\s*:sha256\s*=>\s*['"][^'"]*['"]/,
1729
''
1830
)
1931
File.write(boost_path, boost_spec)
20-
puts '✅ Patched boost podspec to skip checksum verification'
32+
puts '✅ Removed boost checksum verification'
2133
end
2234
end
2335

0 commit comments

Comments
 (0)