Skip to content

Commit 8b5d49d

Browse files
jvsena42claude
andcommitted
fix: update iOS deployment target to 13.0 and fix boost checksum issue
- Set minimum iOS version to 13.0 (required by react-native-ldk) - Add pre_install hook to patch boost podspec to use sourceforge mirror - Add post_install hook to enforce iOS 13.0 deployment target for all pods - Fixes CI failures in e2e-ios, mocha-ios workflows Related: facebook/react-native#37748 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2029374 commit 8b5d49d

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

example/ios/Podfile

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

8-
platform :ios, min_ios_version_supported
8+
platform :ios, '13.0'
99
prepare_react_native_project!
1010

11+
# Fix boost checksum issue by using sourceforge mirror
12+
# https://github.com/facebook/react-native/issues/37748
13+
pre_install do |installer|
14+
boost_path = File.join(installer.sandbox.root, '../node_modules/react-native/third-party-podspecs/boost.podspec')
15+
if File.exist?(boost_path)
16+
boost_spec = File.read(boost_path)
17+
if boost_spec.include?('boostorg.jfrog.io')
18+
boost_spec = boost_spec.gsub(
19+
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
20+
'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2/download'
21+
)
22+
File.write(boost_path, boost_spec)
23+
Pod::UI.puts 'Patched boost podspec to use sourceforge mirror'.green
24+
end
25+
end
26+
end
27+
1128
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
1229
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
1330
#
@@ -58,5 +75,12 @@ target 'exmpl' do
5875
:mac_catalyst_enabled => false
5976
)
6077
__apply_Xcode_12_5_M1_post_install_workaround(installer)
78+
79+
# Fix iOS deployment target to 13.0 (required by react-native-ldk)
80+
installer.pods_project.targets.each do |target|
81+
target.build_configurations.each do |config|
82+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
83+
end
84+
end
6185
end
6286
end

0 commit comments

Comments
 (0)