Skip to content

fix(harness): prepend RCT_NEW_ARCH_ENABLED=1 override to the Podfile - #26

Merged
pzuraq merged 1 commit into
mainfrom
fix-new-arch-setting
May 22, 2026
Merged

fix(harness): prepend RCT_NEW_ARCH_ENABLED=1 override to the Podfile#26
pzuraq merged 1 commit into
mainfrom
fix-new-arch-setting

Conversation

@pzuraq

@pzuraq pzuraq commented May 22, 2026

Copy link
Copy Markdown
Contributor

The React Native community CLI's pod install (via react-native build-ios --force-pods) always passes RCT_NEW_ARCH_ENABLED='0' in the child env when run through the forceInstall path — its bundled install() helper drops the newArchEnabled option before calling installPods, so neither the architecture sniffer nor any caller override matters. That trips Reanimated 4's podspec assertion and aborts pod install, even on a fresh RN 0.81 template whose Info.plist already says RCTNewArchEnabled=true. customizeIOS now prepends ENV['RCT_NEW_ARCH_ENABLED'] = '1' to the scaffolded Podfile so the env is corrected inside the same pod-install process, before use_native_modules! evaluates RNReanimated.podspec and before use_react_native! reads new_arch_enabled to drive codegen.

The React Native community CLI's `pod install` (via
`react-native build-ios --force-pods`) always passes
`RCT_NEW_ARCH_ENABLED='0'` in the child env when run through the
`forceInstall` path — its bundled `install()` helper drops the
`newArchEnabled` option before calling `installPods`, so neither
the architecture sniffer nor any caller override matters. That trips
Reanimated 4's podspec assertion and aborts pod install, even on a
fresh RN 0.81 template whose Info.plist already says
`RCTNewArchEnabled=true`. customizeIOS now prepends
`ENV['RCT_NEW_ARCH_ENABLED'] = '1'` to the scaffolded Podfile so the
env is corrected inside the same pod-install process, before
use_native_modules! evaluates RNReanimated.podspec and before
use_react_native! reads new_arch_enabled to drive codegen.
@pzuraq
pzuraq merged commit fa8f160 into main May 22, 2026
6 checks passed
@pzuraq
pzuraq deleted the fix-new-arch-setting branch May 22, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant