Precompiled binary for React Native Core #923
Replies: 3 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
-
|
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.
-
|
Hello, I am using I submitted the app on Apple App Store for validation. Below the message from Apple. XCode 26.0.1 (17A400) @rpath/ReactNativeDependencies.framework/ReactNativeDependencies Apple has accepted the ipa file compiled with RCT_USE_PREBUILT_RNCORE=0 |
Beta Was this translation helpful? Give feedback.


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_DEPenv variable:Alternatively, if you want to enable it for all the developers working on that, you can modify your Podfile like this:
if linkage != nil Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green use_frameworks! :linkage => linkage.to_sym end +ENV['RCT_USE_RN_DEP'] = '1' +ENV['RCT_USE_PREBUILT_RNCORE'] = '1' target 'HelloWorld' do config = use_native_modules!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_MODULESsetting 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_MODULESin 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