Skip to content

Commit ddc4a88

Browse files
committed
fix: hermes xcode build scripts (#133)
1 parent f2cb896 commit ddc4a88

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ function get_platform_copy_destination {
1616
if [[ $1 == "macosx" ]]; then
1717
echo "macosx"
1818
return
19-
elif [[ $1 == "xros" ]]; then
20-
echo "xros"
21-
return
22-
elif [[ $1 == "xrsimulator" ]]; then
19+
elif [[ $1 == "xrsimulator" || $1 == "xros" ]]; then
2320
echo "xros"
2421
return
2522
fi
@@ -31,8 +28,10 @@ function get_deployment_target {
3128
if [[ $1 == "macosx" ]]; then
3229
echo ${MACOSX_DEPLOYMENT_TARGET}
3330
return
31+
elif [[ $1 == "xrsimulator" || $1 == "xros" ]]; then
32+
echo ${XROS_DEPLOYMENT_TARGET}
33+
return
3434
fi
35-
3635
echo ${IPHONEOS_DEPLOYMENT_TARGET}
3736
}
3837

packages/react-native/template/visionos/HelloWorld/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AppDelegate: RCTAppDelegate {
99

1010
override func bundleURL() -> URL? {
1111
#if DEBUG
12-
RCTBundleURLProvider.sharedSettings()?.jsBundleURL(forBundleRoot: "index")
12+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
1313
#else
1414
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
1515
#endif

0 commit comments

Comments
 (0)