From 7424e846f9955545dcca4bf3d22e799334b79f87 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Thu, 23 Apr 2026 07:17:20 -0700 Subject: [PATCH] fix: resolve cli-platform-apple from cli-platform-ios path for pnpm Re-applies the fix from #2820 that was inadvertently reverted in #2917. Co-Authored-By: Claude Opus 4.6 --- packages/react-native/react-native.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-native/react-native.config.js b/packages/react-native/react-native.config.js index 6700ec369f4a..4fc760e979c0 100644 --- a/packages/react-native/react-native.config.js +++ b/packages/react-native/react-native.config.js @@ -71,9 +71,13 @@ try { // [macOS let apple; try { + const iosPath = require.resolve('@react-native-community/cli-platform-ios', { + paths: [process.cwd()], + }); // $FlowFixMe[untyped-import] apple = findCommunityPlatformPackage( '@react-native-community/cli-platform-apple', + iosPath, ); } catch { if (verbose) {