From 746a8079b1e2e2c1659c9aae626c95fb848497c3 Mon Sep 17 00:00:00 2001 From: evelant Date: Thu, 6 Jul 2023 02:18:38 -0700 Subject: [PATCH] Fix build failure on iOS with pnpm and use_frameworks! (#38158) Summary: Fix build failure on iOS with pnpm and use_frameworks! due to cocoapods copying symlinked headers to wrong paths When using pnpm all packages are symlinked to node_modules/.pnpm to prevent phantom dependency resolution. This causes react-native iOS build to fail because Cocoapods copies headers to incorrect destinations when they're behind symlinks. The fix resolves absolute paths to the header_mappings_dir at pod install time. With absolute paths cocoapods copies the headers correctly. This commit also adds a few missing header search paths in use_frameworks! mode. Fixes https://github.com/facebook/react-native/issues/38140 ## Changelog: