diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8f6532e1..b334c643e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## v0.88.3 — 15 November 2026 + +### Fixed + +- **iOS builds with `use_frameworks!` compile.** An app that installs this package *as* `react-native` and + builds React Native from source with frameworks (dynamic, as ARCore's pods require) failed in three + places, all in the visionOS additions, because a framework exposes its headers only under its own module + name: + - `React-RCTXR` and `React-RCTWindowManager` declared `React-RCTFBReactNativeSpecVisionOS` with + `s.dependency`, which adds no framework header path, so `FBReactNativeSpec_visionOS.h` was not + found. They use `add_dependency`, as React Native's own pods do for `React-RCTFBReactNativeSpec`. + - `RCTXRModule.mm` imports its Swift header as `` when the pod is a framework, + and as `"RCTXR-Swift.h"` otherwise. + - `RCTReactViewController.m` (`React-RCTSwiftExtensions`) imports `` + when that module exists, and its podspec now depends on `React-RCTAppDelegate`; it had reached the + header only through the shared header directory, which frameworks do not have. + ## v0.88.2 — 15 November 2026 ### Fixed diff --git a/packages/react-native/Libraries/Core/ReactNativeVersion.js b/packages/react-native/Libraries/Core/ReactNativeVersion.js index 7a0d544fdc..f9481dd4c2 100644 --- a/packages/react-native/Libraries/Core/ReactNativeVersion.js +++ b/packages/react-native/Libraries/Core/ReactNativeVersion.js @@ -28,7 +28,7 @@ export default class ReactNativeVersion { static major: number = 0; static minor: number = 88; - static patch: number = 2; + static patch: number = 3; static prerelease: string | null = null; static getVersionString(): string { diff --git a/packages/react-native/Libraries/SwiftExtensions/RCTReactViewController.m b/packages/react-native/Libraries/SwiftExtensions/RCTReactViewController.m index 5783b1bcad..6c2b73a528 100644 --- a/packages/react-native/Libraries/SwiftExtensions/RCTReactViewController.m +++ b/packages/react-native/Libraries/SwiftExtensions/RCTReactViewController.m @@ -2,7 +2,12 @@ #import #import #import +// The pod's module is React_RCTAppDelegate when it is built as a framework. +#if __has_include() +#import +#else #import +#endif @protocol RCTRootViewFactoryProtocol diff --git a/packages/react-native/Libraries/SwiftExtensions/React-RCTSwiftExtensions.podspec b/packages/react-native/Libraries/SwiftExtensions/React-RCTSwiftExtensions.podspec index 9d61b8e4cf..055d188d1b 100644 --- a/packages/react-native/Libraries/SwiftExtensions/React-RCTSwiftExtensions.podspec +++ b/packages/react-native/Libraries/SwiftExtensions/React-RCTSwiftExtensions.podspec @@ -26,4 +26,7 @@ Pod::Spec.new do |s| s.dependency "React-Core" s.dependency "React-RCTXR" s.dependency "React-RCTWindowManager" + # RCTReactViewController.m imports RCTAppDelegate.h; it reached it only through the shared + # header directory, which use_frameworks does not have. + add_dependency(s, "React-RCTAppDelegate") end diff --git a/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec b/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec index 47b7f69377..4d670a8601 100644 --- a/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec +++ b/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec @@ -37,10 +37,12 @@ Pod::Spec.new do |s| s.dependency "RCTTypeSafety" s.dependency "React-jsi" - s.dependency "React-RCTFBReactNativeSpecVisionOS" s.dependency "React-Core/RCTWindowManagerHeaders" add_dependency(s, "ReactCodegen", :additional_framework_paths => ["build/generated/ios"]) + # add_dependency, not s.dependency: with use_frameworks it also adds the spec's framework + # header path, without which FBReactNativeSpec_visionOS.h is not found. + add_dependency(s, "React-RCTFBReactNativeSpecVisionOS") add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"]) add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"]) diff --git a/packages/react-native/Libraries/XR/RCTXRModule.mm b/packages/react-native/Libraries/XR/RCTXRModule.mm index 0c37bea8e0..c6d9910092 100644 --- a/packages/react-native/Libraries/XR/RCTXRModule.mm +++ b/packages/react-native/Libraries/XR/RCTXRModule.mm @@ -7,7 +7,12 @@ #import #import #import +// The Swift header lives in the module's framework when the pod is built as one. +#if __has_include() +#import +#else #import "RCTXR-Swift.h" +#endif // Events static NSString *const RCTOpenImmersiveSpace = @"RCTOpenImmersiveSpace"; diff --git a/packages/react-native/Libraries/XR/React-RCTXR.podspec b/packages/react-native/Libraries/XR/React-RCTXR.podspec index a464c5868f..fb8636f6b2 100644 --- a/packages/react-native/Libraries/XR/React-RCTXR.podspec +++ b/packages/react-native/Libraries/XR/React-RCTXR.podspec @@ -37,10 +37,12 @@ Pod::Spec.new do |s| s.dependency "RCTTypeSafety" s.dependency "React-jsi" - s.dependency "React-RCTFBReactNativeSpecVisionOS" s.dependency "React-Core/RCTXRHeaders" add_dependency(s, "ReactCodegen", :additional_framework_paths => ["build/generated/ios"]) + # add_dependency, not s.dependency: with use_frameworks it also adds the spec's framework + # header path, without which FBReactNativeSpec_visionOS.h is not found. + add_dependency(s, "React-RCTFBReactNativeSpecVisionOS") add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"]) add_dependency(s, "React-NativeModulesApple", :additional_framework_paths => ["build/generated/ios"]) diff --git a/packages/react-native/React/Base/RCTVersion.m b/packages/react-native/React/Base/RCTVersion.m index 666c9d9035..b3f230d9ef 100644 --- a/packages/react-native/React/Base/RCTVersion.m +++ b/packages/react-native/React/Base/RCTVersion.m @@ -23,7 +23,7 @@ __rnVersion = @{ RCTVersionMajor: @(0), RCTVersionMinor: @(88), - RCTVersionPatch: @(2), + RCTVersionPatch: @(3), RCTVersionPrerelease: [NSNull null], }; }); diff --git a/packages/react-native/ReactAndroid/gradle.properties b/packages/react-native/ReactAndroid/gradle.properties index d134104818..ffa9450993 100644 --- a/packages/react-native/ReactAndroid/gradle.properties +++ b/packages/react-native/ReactAndroid/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=0.88.2 +VERSION_NAME=0.88.3 react.internal.publishingGroup=com.facebook.react react.internal.hermesPublishingGroup=com.facebook.hermes diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt index 0b31f096a3..a94fa3a2e3 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt @@ -14,7 +14,7 @@ public object ReactNativeVersion { public val VERSION: Map = mapOf( "major" to 0, "minor" to 88, - "patch" to 2, + "patch" to 3, "prerelease" to null ) } diff --git a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h index cc9ea21b8c..d4de55eaf5 100644 --- a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h +++ b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h @@ -14,14 +14,14 @@ #define REACT_NATIVE_VERSION_MAJOR 0 #define REACT_NATIVE_VERSION_MINOR 88 -#define REACT_NATIVE_VERSION_PATCH 2 +#define REACT_NATIVE_VERSION_PATCH 3 namespace facebook::react { struct ReactNativeVersionType { int32_t Major = 0; int32_t Minor = 88; - int32_t Patch = 2; + int32_t Patch = 3; std::string_view Prerelease = ""; }; diff --git a/packages/react-native/package.json b/packages/react-native/package.json index e1a0cf693e..1ae1add2c9 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@reactvision/react-native-visionos", - "version": "0.88.2", + "version": "0.88.3", "publishConfig": { "access": "public" }, diff --git a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap index ab18684d2b..98565ec839 100644 --- a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap +++ b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap @@ -79,7 +79,7 @@ exports[`execute test-app "ReactAppDependencyProvider/ReactAppDependencyProvider # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.2\\" +version = \\"0.88.3\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -399,7 +399,7 @@ exports[`execute test-app "ReactCodegen/ReactCodegen.podspec" should match snaps # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.2\\" +version = \\"0.88.3\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -590,7 +590,7 @@ exports[`execute test-app-legacy "ReactAppDependencyProvider/ReactAppDependencyP # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.2\\" +version = \\"0.88.3\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -882,7 +882,7 @@ exports[`execute test-app-legacy "ReactCodegen/ReactCodegen.podspec" should matc # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.2\\" +version = \\"0.88.3\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.