fix(mobile): resolve iOS build errors by enabling buildReactNativeFromSource for Expo SDK 54
Expo SDK 54 switched to precompiled React Native XCFrameworks by default for faster iOS builds. However, the precompiled frameworks do not expose legacy bridge headers (RCTBridge, RCTViewManager, RCTSurfaceHostingProxyRootView, RCTPackagerConnection, RCTDevSettings.isDebuggingRemotely, rootViewFactory) that some native modules (e.g. expo-dev-client) still reference. Add expo-build-properties (v1.0.10, the SDK 54-compatible version) and configure buildReactNativeFromSource: true for iOS. This compiles React Native from source, making all native headers available to linked modules and resolving the Xcode compilation errors seen in the EAS production build. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -46,6 +46,14 @@
|
||||
},
|
||||
"plugins": [
|
||||
"expo-router",
|
||||
[
|
||||
"expo-build-properties",
|
||||
{
|
||||
"ios": {
|
||||
"buildReactNativeFromSource": true
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
"expo-notifications",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user