diff --git a/packages/react-native/React-Core.podspec b/packages/react-native/React-Core.podspec index 285793b8e1b2c7..2848b325c73e59 100644 --- a/packages/react-native/React-Core.podspec +++ b/packages/react-native/React-Core.podspec @@ -72,7 +72,7 @@ Pod::Spec.new do |s| s.resource_bundle = { "RCTI18nStrings" => ["React/I18n/strings/*.lproj"]} s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags + ' ' + use_hermes_flag s.header_dir = "React" - s.framework = "JavaScriptCore" + s.weak_framework = "JavaScriptCore" s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => header_search_paths, "DEFINES_MODULE" => "YES", diff --git a/packages/react-native/React/React-RCTFabric.podspec b/packages/react-native/React/React-RCTFabric.podspec index 841ca5082302d8..6fb7cd95e0e34a 100644 --- a/packages/react-native/React/React-RCTFabric.podspec +++ b/packages/react-native/React/React-RCTFabric.podspec @@ -58,7 +58,8 @@ Pod::Spec.new do |s| s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags + new_arch_flags s.header_dir = header_dir s.module_name = module_name - s.framework = ["JavaScriptCore", "MobileCoreServices"] + s.weak_framework = "JavaScriptCore" + s.framework = "MobileCoreServices" s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => header_search_paths, "OTHER_CFLAGS" => "$(inherited) " + folly_compiler_flags + new_arch_flags, diff --git a/packages/react-native/ReactCommon/jsc/JSCRuntime.cpp b/packages/react-native/ReactCommon/jsc/JSCRuntime.cpp index 6ea718b1e473de..9e188fad527466 100644 --- a/packages/react-native/ReactCommon/jsc/JSCRuntime.cpp +++ b/packages/react-native/ReactCommon/jsc/JSCRuntime.cpp @@ -377,13 +377,11 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx) { #ifndef NDEBUG #ifdef _JSC_HAS_INSPECTABLE -#if (__OSX_AVAILABLE_STARTING(MAC_NA, IPHONE_16_4)) if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) { JSGlobalContextSetInspectable(ctx_, true); } #endif #endif -#endif } JSCRuntime::~JSCRuntime() { diff --git a/packages/react-native/ReactCommon/jsc/React-jsc.podspec b/packages/react-native/ReactCommon/jsc/React-jsc.podspec index 6239621c6a8c64..ed07e939fc9868 100644 --- a/packages/react-native/ReactCommon/jsc/React-jsc.podspec +++ b/packages/react-native/ReactCommon/jsc/React-jsc.podspec @@ -27,7 +27,7 @@ Pod::Spec.new do |s| s.source = source s.source_files = "JSCRuntime.{cpp,h}" s.exclude_files = "**/test/*" - s.framework = "JavaScriptCore" + s.weak_framework = "JavaScriptCore" s.dependency "React-jsi", version