MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Bug: Cache splits based on host platform

Open
#1,094 3 comments 1 reaction 1 assignee View on GitHub

@brentleyjones is already working on this.

Since Sep 14, 2022.

bug
Dominant language
Swift
Stars
626
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Given the following declaration:

[
    xcodeproj(
        name = "xcodeproj-{0}-{1}".format(build_mode, ios_simulator_cpus),
        build_mode = build_mode,
        ios_simulator_cpus = ios_simulator_cpus,
        ...
    )
    for build_mode in [
        "bazel",
        "xcode",
    ]
    for ios_simulator_cpus in [
        "sim_arm64",
        "x86_64",
    ]
]

Run this on an Intel-based Mac to populate to remote cache.

bazel run //:xcodeproj-bazel-sim_arm64 -- --build_output_groups all_targets

On an Apple silicon Mac, generate an Xcode project with:

bazel run //:xcodeproj-bazel-sim_arm64

Open it, build, and see a lot of cache misses.

(10:50:06) INFO: 2529 processes: 253 remote cache hit, 1132 internal, 1144 local.

Versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.