From 3a334584a42b866b4d4a3aa668e47cc5131dac4d Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 22 Jul 2024 17:36:16 +0100 Subject: [PATCH] [RN][0.74]Fix XROS build --- .circleci/configurations/executors.yml | 2 +- .circleci/configurations/jobs.yml | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.circleci/configurations/executors.yml b/.circleci/configurations/executors.yml index f06f0497773e35..5ffb38877eddc1 100644 --- a/.circleci/configurations/executors.yml +++ b/.circleci/configurations/executors.yml @@ -39,7 +39,7 @@ executors: reactnativeios-lts: <<: *defaults macos: - xcode: '14.3.1' + xcode: '15.1' resource_class: macos.m1.medium.gen1 environment: - RCT_BUILD_HERMES_FROM_SOURCE: true diff --git a/.circleci/configurations/jobs.yml b/.circleci/configurations/jobs.yml index 942d8396885021..a1348fca830da2 100644 --- a/.circleci/configurations/jobs.yml +++ b/.circleci/configurations/jobs.yml @@ -786,9 +786,6 @@ jobs: - HERMES_WS_DIR: *hermes_workspace_root - HERMES_TARBALL_ARTIFACTS_DIR: *hermes_tarball_artifacts_dir - HERMES_OSXBIN_ARTIFACTS_DIR: *hermes_osxbin_artifacts_dir - - IOS_DEPLOYMENT_TARGET: "13.4" - - XROS_DEPLOYMENT_TARGET: "1.0" - - MACOSX_DEPLOYMENT_TARGET: "10.15" steps: - *attach_hermes_workspace - stop_job_if_apple_artifacts_are_there: @@ -824,6 +821,23 @@ jobs: echo "[HERMES] Building Hermes for iOS: $SLICE" BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE" fi + + if [[ "$SLICE" == "macosx" ]]; then + export MACOSX_DEPLOYMENT_TARGET="10.15" + echo "[HERMES] Building Hermes for MacOS" + BUILD_TYPE="<< parameters.flavor >>" ./utils/build-mac-framework.sh + unset MACOSX_DEPLOYMENT_TARGET + elif [[ "$SLICE" == "xros" ]] || [[ "$SLICE" == "xrsimulator" ]]; then + export XROS_DEPLOYMENT_TARGET="1.0" + echo "[HERMES] Building Hermes for XR: $SLICE" + BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE" + unset XROS_DEPLOYMENT_TARGET + elif [[ "$SLICE" == "iphoneos" ]] || [[ "$SLICE" == "iphonesimulator" ]] || [[ "$SLICE" == "catalyst" ]] ; then + export IOS_DEPLOYMENT_TARGET="13.4" + echo "[HERMES] Building Hermes for iOS: $SLICE" + BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE" + unset IOS_DEPLOYMENT_TARGET + fi unset RELEASE_VERSION echo "Moving from build_$SLICE to $FINAL_PATH"