diff --git a/.circleci/config.yml b/.circleci/config.yml index 5a4475b831f637..102d8b5b3f283f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,7 +46,7 @@ references: # Dependency Anchors # ------------------------- dependency_versions: - xcode_version: &xcode_version "14.2.0" + xcode_version: &xcode_version "14.3.0" nodelts_image: &nodelts_image "cimg/node:18.12.1" nodeprevlts_image: &nodeprevlts_image "cimg/node:16.18.1" @@ -620,7 +620,7 @@ jobs: - run: name: Run Ruby Tests command: | - cd scripts + cd packages/react-native/scripts sh run_ruby_tests.sh - run_yarn - *attach_hermes_workspace diff --git a/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb b/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb index af1184e1e783ac..725e57c278a148 100644 --- a/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb +++ b/packages/react-native/scripts/cocoapods/__tests__/codegen_utils-test.rb @@ -15,6 +15,14 @@ require_relative "./test_utils/CodegenScriptPhaseExtractorMock.rb" require_relative "./test_utils/FileUtilsMock.rb" +# mocking the min_ios_version_supported function +# as it is not possible to require the original react_native_pod +# without incurring in circular deps +# TODO: move `min_ios_version_supported` to utils.rb +def min_ios_version_supported + return '12.4' +end + class CodegenUtilsTests < Test::Unit::TestCase :base_path @@ -527,7 +535,7 @@ def get_podspec_no_fabric_no_script 'source' => { :git => '' }, 'header_mappings_dir' => './', 'platforms' => { - 'ios' => '11.0', + 'ios' => '12.4', }, 'source_files' => "**/*.{h,mm,cpp}", 'pod_target_xcconfig' => { diff --git a/packages/react-native/scripts/cocoapods/codegen_utils.rb b/packages/react-native/scripts/cocoapods/codegen_utils.rb index c0db4bbb47425e..a90acc21553b6f 100644 --- a/packages/react-native/scripts/cocoapods/codegen_utils.rb +++ b/packages/react-native/scripts/cocoapods/codegen_utils.rb @@ -111,7 +111,7 @@ def get_react_codegen_spec(package_json_file, folly_version: '2021.07.22.00', fa 'source' => { :git => '' }, 'header_mappings_dir' => './', 'platforms' => { - 'ios' => '11.0', + 'ios' => min_ios_version_supported, }, 'source_files' => "**/*.{h,mm,cpp}", 'pod_target_xcconfig' => { diff --git a/scripts/run_ruby_tests.sh b/packages/react-native/scripts/run_ruby_tests.sh similarity index 100% rename from scripts/run_ruby_tests.sh rename to packages/react-native/scripts/run_ruby_tests.sh