Skip to content

Commit 1835245

Browse files
authored
[RN][0.74]Fix XROS build (facebook#45580)
1 parent c9ce048 commit 1835245

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.circleci/configurations/executors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ executors:
3939
reactnativeios-lts:
4040
<<: *defaults
4141
macos:
42-
xcode: '14.3.1'
42+
xcode: '15.1'
4343
resource_class: macos.m1.medium.gen1
4444
environment:
4545
- RCT_BUILD_HERMES_FROM_SOURCE: true

.circleci/configurations/jobs.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,6 @@ jobs:
786786
- HERMES_WS_DIR: *hermes_workspace_root
787787
- HERMES_TARBALL_ARTIFACTS_DIR: *hermes_tarball_artifacts_dir
788788
- HERMES_OSXBIN_ARTIFACTS_DIR: *hermes_osxbin_artifacts_dir
789-
- IOS_DEPLOYMENT_TARGET: "13.4"
790-
- XROS_DEPLOYMENT_TARGET: "1.0"
791-
- MACOSX_DEPLOYMENT_TARGET: "10.15"
792789
steps:
793790
- *attach_hermes_workspace
794791
- stop_job_if_apple_artifacts_are_there:
@@ -824,6 +821,23 @@ jobs:
824821
echo "[HERMES] Building Hermes for iOS: $SLICE"
825822
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
826823
fi
824+
825+
if [[ "$SLICE" == "macosx" ]]; then
826+
export MACOSX_DEPLOYMENT_TARGET="10.15"
827+
echo "[HERMES] Building Hermes for MacOS"
828+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-mac-framework.sh
829+
unset MACOSX_DEPLOYMENT_TARGET
830+
elif [[ "$SLICE" == "xros" ]] || [[ "$SLICE" == "xrsimulator" ]]; then
831+
export XROS_DEPLOYMENT_TARGET="1.0"
832+
echo "[HERMES] Building Hermes for XR: $SLICE"
833+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
834+
unset XROS_DEPLOYMENT_TARGET
835+
elif [[ "$SLICE" == "iphoneos" ]] || [[ "$SLICE" == "iphonesimulator" ]] || [[ "$SLICE" == "catalyst" ]] ; then
836+
export IOS_DEPLOYMENT_TARGET="13.4"
837+
echo "[HERMES] Building Hermes for iOS: $SLICE"
838+
BUILD_TYPE="<< parameters.flavor >>" ./utils/build-ios-framework.sh "$SLICE"
839+
unset IOS_DEPLOYMENT_TARGET
840+
fi
827841
unset RELEASE_VERSION
828842
829843
echo "Moving from build_$SLICE to $FINAL_PATH"
@@ -1131,6 +1145,11 @@ jobs:
11311145
- run:
11321146
name: Creating release commit
11331147
command: |
1148+
# I'm seeing failures in automatically detect the email for the
1149+
# agent that should push the commit.
1150+
git config --global user.name "Distiller"
1151+
git config --global user.email "[email protected]"
1152+
11341153
git commit -a -m "Release << parameters.version >>" -m "#publish-packages-to-npm&<< parameters.tag >>"
11351154
git tag -a "v<< parameters.version >>" -m "v<< parameters.version >>"
11361155
env GIT_PAGER=cat git show HEAD

.circleci/configurations/top_level.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ references:
5959
# Dependency Anchors
6060
# -------------------------
6161
dependency_versions:
62-
xcode_version: &xcode_version "15.0.1"
62+
xcode_version: &xcode_version "15.2"
6363
nodelts_image: &nodelts_image "cimg/node:20.2.0"
6464
nodeprevlts_image: &nodeprevlts_image "cimg/node:18.12.1"
6565
nodelts_browser_image: &nodelts_browser_image "cimg/node:20.2.0-browsers"

0 commit comments

Comments
 (0)