@@ -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
1010boost_path = File . join ( __dir__ , '../node_modules/react-native/third-party-podspecs/boost.podspec' )
1111if 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
2234end
2335
0 commit comments