Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react-native/scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def use_react_native! (
error_if_try_to_use_jsc_from_core()
warn_if_new_arch_disabled()

react_native_path = Pathname.pwd.join(path)
react_native_path = Pod::Config.instance.installation_root.join(path)
prefix = react_native_path.relative_path_from(Pod::Config.instance.installation_root)

hermes_enabled= true
Expand Down Expand Up @@ -106,7 +106,7 @@ def use_react_native! (
# that has invoked the `use_react_native!` function.
ReactNativePodsUtils.detect_use_frameworks(current_target_definition)

CodegenUtils.clean_up_build_folder(path, $CODEGEN_OUTPUT_DIR)
CodegenUtils.clean_up_build_folder(react_native_path, $CODEGEN_OUTPUT_DIR)
Copy link
Contributor Author

@kitten kitten Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something I updated for clarity. Without this, if path isn't relative to the pwd the FileUtils.rm_rf can silently fail here afaict:

base_provider_path = file_manager.join(rn_path, 'React', 'Fabric', 'RCTThirdPartyFabricComponentsProvider')
FileUtils.rm_rf("#{base_provider_path}.h")
FileUtils.rm_rf("#{base_provider_path}.mm")


# We are relying on this flag also in third parties libraries to proper install dependencies.
# Better to rely and enable this environment flag if the new architecture is turned on using flags.
Expand Down
Loading