Skip to content

Commit c3de3ef

Browse files
committed
[RN][iOS] Remove the legacy arch by default
1 parent f9346fb commit c3de3ef

File tree

7 files changed

+29
-744
lines changed

7 files changed

+29
-744
lines changed

packages/react-native/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ extension Target {
923923
.define("DEBUG", .when(configuration: .debug)),
924924
.define("NDEBUG", .when(configuration: .release)),
925925
.define("USE_HERMES", to: "1"),
926+
.define("RCT_REMOVE_LEGACY_ARCH", to: "1"),
926927
] + defines + cxxCommonHeaderPaths
927928

928929
return .target(

packages/react-native/scripts/react_native_pods.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def use_react_native! (
8484
# This is needed as part of our migration away from cocoapods
8585
ENV['RCT_SKIP_CODEGEN'] = ENV['RCT_SKIP_CODEGEN'] == '1' || ENV['RCT_IGNORE_PODS_DEPRECATION'] == '1' ? '1' : '0'
8686

87+
# Make `REMOVE_LEGACY_ARCH` enabled by default. This will build React Native
88+
# excluding the legacy arch unless the user turns this flag off explicitly.
89+
ENV['RCT_REMOVE_LEGACY_ARCH'] = ENV['RCT_REMOVE_LEGACY_ARCH'] == '0' ? '0' : '1'
90+
8791
ReactNativePodsUtils.check_minimum_required_xcode()
8892

8993
# Current target definition is provided by Cocoapods and it refers to the target

packages/rn-tester/RNTesterIntegrationTests/RCTUIManagerScenarioTests.m

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)