Skip to content

Commit 0010c38

Browse files
authored
fix(xcode): backport Xcode 14.3 fix to 71 (#36769)
1 parent 5162e0b commit 0010c38

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

scripts/cocoapods/__tests__/codegen_utils-test.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,14 @@ def test_assertCodegenFolderIsEmpty_whenItIsNotEmpty_itAborts
486486

487487
private
488488

489+
# mocking the min_ios_version_supported function
490+
# as it is not possible to require the original react_native_pod
491+
# without incurring in circular deps
492+
# TODO: move `min_ios_version_supported` to utils.rb
493+
def min_ios_version_supported
494+
return '12.4'
495+
end
496+
489497
def get_podspec_no_fabric_no_script
490498
spec = {
491499
'name' => "React-Codegen",
@@ -498,7 +506,7 @@ def get_podspec_no_fabric_no_script
498506
'source' => { :git => '' },
499507
'header_mappings_dir' => './',
500508
'platforms' => {
501-
'ios' => '11.0',
509+
'ios' => min_ios_version_supported,
502510
},
503511
'source_files' => "**/*.{h,mm,cpp}",
504512
'pod_target_xcconfig' => { "HEADER_SEARCH_PATHS" =>

scripts/cocoapods/codegen_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def get_react_codegen_spec(package_json_file, folly_version: '2021.07.22.00', fa
8585
'source' => { :git => '' },
8686
'header_mappings_dir' => './',
8787
'platforms' => {
88-
'ios' => '11.0',
88+
'ios' => min_ios_version_supported,
8989
},
9090
'source_files' => "**/*.{h,mm,cpp}",
9191
'pod_target_xcconfig' => { "HEADER_SEARCH_PATHS" =>

0 commit comments

Comments
 (0)