The behavior of xccache can be controlled via a xccache.yml
configuration file under the root project directory. Example: xccache.yml.
Following are some available configurations.
ignore_local
false
ignore
[]
[!NOTE] These patterns apply to targets, not products.
keep_pkgs_in_project
false
ignore_build_errors
false
xccache build
. This option might be useful when building multiple targets and one of them fails, with this option as true
, the tool still continues building other targets.default_sdk
iphonesimulator
iphonesimulator
, iphoneos
, macos
, appletvos
, appletvsimulator
, watchos
, watchsimulator
, xros
, xrsimulator
.remote
NOTE: This configuration is per build/install configuration (debug/release), as follows.
Using Git
remote:
debug: # remote cache config for debug & release
git: [email protected]/org/cache
Using S3
remote:
debug: # remote cache config for debug
git: https://github.com/trinhngocthuyen/.cache.git
release: # remote cache config for release
s3:
uri: "s3://xccache/binaries"
creds: "path/to/aws_creds.json"
s3:uri
: The S3 URI, ex. s3://xccache/binaries
s3:creds
: The path to the json credentials (default: ~/.xccache/s3.creds.json
). This json contains the access key id and secret access key as follows:
{
"access_key": "YOUR_KEY_ID",
"secret_access_key": "YOUR_ACCESS_KEY"
}