Skip to content

fix(harness): seed Pods/Pods.xcodeproj/project.pbxproj with the new-arch marker#24

Merged
pzuraq merged 1 commit into
mainfrom
separate-bundle-install
May 22, 2026
Merged

fix(harness): seed Pods/Pods.xcodeproj/project.pbxproj with the new-arch marker#24
pzuraq merged 1 commit into
mainfrom
separate-bundle-install

Conversation

@pzuraq

@pzuraq pzuraq commented May 21, 2026

Copy link
Copy Markdown
Contributor

Fix bootstrap failing on iOS for projects that depend on react-native-reanimated@4. The React Native community CLI's pod install step was passing RCT_NEW_ARCH_ENABLED='0' on a virgin scaffold because its New Architecture detector relies on a Pods xcodeproj that doesn't exist yet, which Reanimated's podspec asserts against. The harness builder now pre-seeds the file the detector reads, so pod install runs with the New Architecture enabled like the template expects.

…rch marker

The community CLI's `installPods` sniffs `ios/Pods/Pods.xcodeproj/project.pbxproj`
for `-DRCT_NEW_ARCH_ENABLED=1` to decide what env to pass to `pod install`. On
a virgin scaffold that file doesn't exist yet, so the sniffer returns false,
the CLI passes `RCT_NEW_ARCH_ENABLED='0'`, and Reanimated 4's podspec assertion
aborts the install. `customizeIOS` now pre-seeds the file with the marker
substring; CocoaPods overwrites it during the first install with a real Xcode
project that carries the same flag, so the sniffer self-sustains on every
subsequent rebuild. Bumps `BUILD_FORMAT_VERSION` 6 → 7.
@pzuraq
pzuraq force-pushed the separate-bundle-install branch from abd1ff0 to 60e4368 Compare May 22, 2026 00:55
@pzuraq pzuraq changed the title fix(harness): take over pod install to preserve New Architecture fix(harness): seed Pods/Pods.xcodeproj/project.pbxproj with the new-arch marker May 22, 2026
@pzuraq
pzuraq merged commit 358de08 into main May 22, 2026
6 checks passed
@pzuraq
pzuraq deleted the separate-bundle-install branch May 22, 2026 01:27
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