Skip to content

Commit 05dec91

Browse files
okwasniewskifacebook-github-bot
authored andcommitted
fix: Hermes build for visionOS simulator (Release) (#45911)
Summary: Building for the visionOS simulator in the Release scheme requires an x86_64 slice to be included. ![CleanShot 2024-08-06 at 15 18 29@2x](https://github.com/user-attachments/assets/6fd962eb-ab71-4937-affe-964d8fa39f53) ## Changelog: [IOS] [FIXED] - Include x86_64 slice when building for visionOS simulator Pull Request resolved: #45911 Test Plan: CI Green Reviewed By: GijsWeterings Differential Revision: D60828872 Pulled By: cipolleschi fbshipit-source-id: 74444ac0b6661baf427837d242ba0ca295da0d16
1 parent c17da4e commit 05dec91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/sdks/hermes-engine/utils/build-ios-framework.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ set -e
1212
# Given a specific target, retrieve the right architecture for it
1313
# $1 the target you want to build. Allowed values: iphoneos, iphonesimulator, catalyst, xros, xrsimulator
1414
function get_architecture {
15-
if [[ $1 == "iphoneos" || $1 == "xros" || $1 == "xrsimulator" ]]; then
15+
if [[ $1 == "iphoneos" || $1 == "xros" ]]; then
1616
echo "arm64"
17-
elif [[ $1 == "iphonesimulator" ]]; then
17+
elif [[ $1 == "iphonesimulator" || $1 == "xrsimulator" ]]; then
1818
echo "x86_64;arm64"
1919
elif [[ $1 == "catalyst" ]]; then
2020
echo "x86_64;arm64"

0 commit comments

Comments
 (0)