def apple_bazel_stamp(name, command):
    native.genrule(
        name = name,
        outs = [name + ".stamp"],
        cmd = "$(location :runner) %s && : > \"$@\"" % command,
        srcs = ["//:apple_project_files"],
        tools = [":runner"],
        # The Xcode script stages release artifacts under dist/builds as a
        # deliberate CI side effect; keep the wrapper uncached so the staging
        # step always runs in fresh and reused workspaces.
        tags = ["no-cache", "no-remote-cache", "no-sandbox"],
        target_compatible_with = ["@platforms//os:macos"],
    )
