Skip to content

Commit 3f20e10

Browse files
chrfalchclaude
andcommitted
fix(cocoapods): define podspec_dir in RNCoreFacades.generate
The FACADE_REEXPOSED_HEADERS loop passed an undefined `podspec_dir` to copy_reexposed_headers, crashing `pod install` at `use_react_native!` ("undefined local variable or method 'podspec_dir'"). Derive it from the real podspec path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 72768b5 commit 3f20e10

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/scripts/cocoapods/rncore_facades.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def self.generate(react_native_path, install_root, version, ios_version)
114114
FileUtils.mkdir_p(abs_base)
115115
FACADE_PODS.each do |name, podspec_rel_path|
116116
podspec_path = File.join(react_native_path.to_s, podspec_rel_path)
117+
podspec_dir = File.dirname(podspec_path)
117118
real = load_real_spec(podspec_path, name)
118119
dir = File.join(abs_base, name)
119120
FileUtils.mkdir_p(dir)

0 commit comments

Comments
 (0)