Precompiled binary for React Native Core #923
cipolleschi
started this conversation in
Feedback
Replies: 2 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
7 replies
-
I'm trying to install a React Native 0.81.1 app onto my iPhone, but am getting this error:
The xcworkspace was generated by Expo 54 and I'm using a development signing certificate. edit: Might be Expo's fault: expo/expo#39233 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Starting from React Native 0.81, we are shipping React Native for iOS as a precompiled binary. This helps to reduce build times and build errors related to React Native.
We experimented and benchmarked how much time this initial precompiled binary for iOS is saving and, in our benchmarks, running on an M4 machine, iOS builds are roughly 8.3 times faster with the precompiled binary rather than by building from source.
This feature is still experimental, but we believe that it will improve the developer experience of all React Native users when they works on an iOS application.
The goal of this discussion is to track issues you might encounter when turning this feature on.
If you experience any problem with the precompiled binaries, please post a comment below this discussion.
How to use them
This feature is still experimental, so it is not turned on by default.
If you want to use them, you can install your pods by adding the
RCT_USE_RN_DEP
env variable:Alternatively, if you want to enable it for all the developers working on that, you can modify your Podfile like this:
Known limitations
We are currently aware of 2 knowns limitations, we are looking into solving.
Precompiled binaries does not work with Xcode 26 out of the box
Xcode 26 is still in Beta, and Apple changed the default value of the
SWIFT_ENABLE_EXPLICIT_MODULES
setting in the new version of the IDE.The new default value is
YES
, and with this setting turned on, you'll see an error like this:To use prebuilds with Xoce 26, you can turn off the
SWIFT_ENABLE_EXPLICIT_MODULES
in your app's Build Settings.We will ship the proper fix in React Native 0.81.1
Can't debug React Native code
We are aware that it is not possible to step into React Native's internals when building your app using precompiled binaries. You can still debug your own native code.
Stepping into React Native's internal is a feature we would like to preserve when you are building your app in Debug mode, but we currently don't have a solution for this. If you need to debug a problem in your app you think is due to React Native code, you'll have to build your app from source, for the time being.
Beta Was this translation helpful? Give feedback.
All reactions