Skip to content

[0.85] Cache prebuilt iOS binaries in ~/Library/Caches/ReactNative #1301

@cipolleschi

Description

@cipolleschi

Target Branch

0.85

Link to commit or PR to be picked

facebook/react-native#56845

Description

This adds a shared cache layer at ~/Library/Caches/ReactNative/ for prebuilt iOS tarballs (Hermes, ReactNativeDependencies, ReactNativeCore). On first download, tarballs are saved to both the local Pods artifacts dir and the shared cache. On subsequent pod install runs, if the local Pods cache is empty but the shared cache has the tarball for that version, it is copied locally instead of re-downloaded from Maven.

This avoids redundant downloads when:

  • The Pods directory is deleted between installs
  • Multiple projects use the same React Native version
  • CI environments have a persistent home directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions