Skip to content

Commit a6a4e75

Browse files
committed
fix: turn off prebuilds for brownfield builds
1 parent 3b2fa61 commit a6a4e75

File tree

1 file changed

+3
-2
lines changed
  • packages/platform-apple-helpers/src/lib/utils

1 file changed

+3
-2
lines changed

packages/platform-apple-helpers/src/lib/utils/pods.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ async function runPodInstall(options: {
124124
numeric: true,
125125
sensitivity: 'base',
126126
}) >= 0;
127+
const usePrebuiltReactNative = !options.brownfield && isReactNative81OrHigher;
127128
const command = options.useBundler ? 'bundle' : 'pod';
128129
const args = options.useBundler ? ['exec', 'pod', 'install'] : ['install'];
129130
try {
@@ -132,9 +133,9 @@ async function runPodInstall(options: {
132133
RCT_NEW_ARCH_ENABLED: options.newArch ? '1' : '0',
133134
RCT_IGNORE_PODS_DEPRECATION: '1',
134135
RCT_USE_RN_DEP:
135-
process.env['RCT_USE_RN_DEP'] || isReactNative81OrHigher ? '1' : '0',
136+
process.env['RCT_USE_RN_DEP'] || usePrebuiltReactNative ? '1' : '0',
136137
RCT_USE_PREBUILT_RNCORE:
137-
process.env['RCT_USE_PREBUILT_RNCORE'] || isReactNative81OrHigher
138+
process.env['RCT_USE_PREBUILT_RNCORE'] || usePrebuiltReactNative
138139
? '1'
139140
: '0',
140141
...(options.brownfield && { USE_FRAMEWORKS: 'static' }),

0 commit comments

Comments
 (0)