xccache

< Knowledge Base

📝 Overview

Cache as xcframeworks

The xccache CLI provides some functionalities to build a Swift package target into an xcframework (for more details, check out the Under the Hood section). This xcframework can be used in the project in many ways. See more: Declare a binary target in the package manifest.

The tool manages a special umbrella package (at: xccache/packages/umbrella) to manipulate cache dependencies in the project. In case of cache hit, it replaces the original dependency (with source code) with the corresponding prebuilt dependency.

Cache Fallback

In case of cache miss, it automatically uses the original dependency.

Cache Validation Model

(1) Checksum-based: An xcframework is associated with a checksum of its package. If the checksum does not match -> cache miss.

Under the Hood