Repository navigation
0.88.3: the visionOS pods build with use_frameworks on iOS - #20
Merged
Merged
Conversation
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 app that installs the fork as
react-nativeand builds iOS from source withuse_frameworks!(dynamic, the configuration ARCore's pods ask for) failed to compile, even on 0.88.2, in three places in the visionOS additions. A framework exposes its headers only under its own module name, and these pods assumed the shared header directory a non-framework build has. This fixes all three and bumps the package to 0.88.3.What changed
React-RCTXRandReact-RCTWindowManagerdeclareReact-RCTFBReactNativeSpecVisionOSwithadd_dependencyinstead ofs.dependency, as React Native's own pods do forReact-RCTFBReactNativeSpec(e.g.React-FabricComponents).add_dependencyalso adds the dependency's framework header path, soFBReactNativeSpec_visionOS.his found.RCTXRModule.mmimports<RCTXR/RCTXR-Swift.h>when the pod is a framework,"RCTXR-Swift.h"otherwise (__has_include).RCTReactViewController.m(React-RCTSwiftExtensions) imports<React_RCTAppDelegate/RCTAppDelegate.h>when that module exists,<React-RCTAppDelegate/RCTAppDelegate.h>otherwise, and its podspec now depends onReact-RCTAppDelegate(add_dependency). It had never declared that dependency; the header was reachable only through the shared header directory.package.json, the native version constants (JS, ObjC, C++, Kotlin),VERSION_NAMEand the codegen snapshot.reactNativeUpstreamVersionstays 0.88.1.Notes
react-native(the setup guide, the showcase), or the prebuilt React core, never reaches these pods on iOS with frameworks.Testing
npm pack) asreact-native,ios.buildReactNativeFromSource: trueandios.useFrameworks: dynamic:pod install(noReact-Core-prebuilt),xcodebuildfor the iOS Simulator: BUILD SUCCEEDED, withRCTXR.framework,React_RCTSwiftExtensions.frameworkandReact_RCTAppDelegate.frameworkbuilt.