From 11d0bd53e481427c9f7f5052d5cfcb5b4ccdc3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Mon, 25 Mar 2024 08:32:08 +0100 Subject: [PATCH] fix: hermes xcode build scripts (#133) --- .../sdks/hermes-engine/utils/build-hermes-xcode.sh | 3 +++ .../template/visionos/HelloWorld/AppDelegate.swift | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-native/sdks/hermes-engine/utils/build-hermes-xcode.sh b/packages/react-native/sdks/hermes-engine/utils/build-hermes-xcode.sh index 0fa473e9c11fca..b4e834875a18c3 100755 --- a/packages/react-native/sdks/hermes-engine/utils/build-hermes-xcode.sh +++ b/packages/react-native/sdks/hermes-engine/utils/build-hermes-xcode.sh @@ -31,6 +31,9 @@ function get_deployment_target { elif [[ $1 == "xrsimulator" || $1 == "xros" ]]; then echo "${XROS_DEPLOYMENT_TARGET}" return + elif [[ $1 == "xrsimulator" || $1 == "xros" ]]; then + echo ${XROS_DEPLOYMENT_TARGET} + return fi echo "${IPHONEOS_DEPLOYMENT_TARGET}" diff --git a/packages/react-native/template/visionos/HelloWorld/AppDelegate.swift b/packages/react-native/template/visionos/HelloWorld/AppDelegate.swift index 1583449a06a0ae..4e68fb4c1bd7ab 100644 --- a/packages/react-native/template/visionos/HelloWorld/AppDelegate.swift +++ b/packages/react-native/template/visionos/HelloWorld/AppDelegate.swift @@ -9,7 +9,7 @@ class AppDelegate: RCTAppDelegate { override func bundleURL() -> URL? { #if DEBUG - RCTBundleURLProvider.sharedSettings()?.jsBundleURL(forBundleRoot: "index") + RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") #else Bundle.main.url(forResource: "main", withExtension: "jsbundle") #endif