Repository navigation
0.88.2: XR and WindowManager build with the prebuilt React core - #19
Merged
Merged
Conversation
… prebuilt React core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An iOS build failed in this fork's own code:
RCTWindowManager.mm:1:9: fatal error: 'React/RCTWindowManager.h' file not found. It happens when an app installs the fork asreact-nativeand builds iOS with the prebuilt React core, which Expo SDK 58's Podfile turns on by default (RCT_USE_PREBUILT_RNCORE=1unlessios.buildReactNativeFromSourceis true). This fixes it and bumps the package to 0.88.2.Cause
React-RCTWindowManagerandReact-RCTXRare installed on every platform, and their.mmfiles imported their headers as<React/RCTWindowManager.h>and<React/RCTXRModule.h>. Those headers reach<React/...>throughReact-Core'sRCTWindowManagerHeaders/RCTXRHeaderssubspecs, which exist only when React Native builds from source. With the prebuilt core,React.xcframeworkis upstream's and carries none of the visionOS headers.Installing the fork alongside
react-native(what the setup guide and the showcase do) was not affected: iOS then uses stock React Native and never installs these pods.What changed
RCTWindowManager.mmandRCTXRModule.mmimport their own header ("RCTWindowManager.h","RCTXRModule.h"), and both podspecs ship it (source_filesnow includes*.h). TheReact-Coreheader subspecs stay, so<React/...>keeps working for source builds.package.json, the native version constants (JS, ObjC, C++, Kotlin),VERSION_NAMEand the codegen snapshot, as in 0.86.4.reactNativeUpstreamVersionstays 0.88.1, which is what the prebuilt artifacts are fetched by.Testing
create-expo-app, blank TypeScript) with"react-native": "npm:@reactvision/react-native-visionos@0.88.1",expo prebuild -p ios,pod install(installsReact-Core-prebuilt,React-RCTWindowManager,React-RCTXR) andxcodebuildfor the iOS Simulator: fails with the error above.npm pack) in place of 0.88.1: BUILD SUCCEEDED.