# Build Bazel Apple Apps on Remote Macs

Apple Bazel builds usually require local Xcode and compatible Mac hardware. This skill guides remote builds, simulator installation, uploads, verification, and troubleshooting through Limrun.

## Install

```bash
npx skillstore add limrun-inc/limrun-xcode-bazel
```

## Metadata

- Status: approved
- Slug: limrun-inc-limrun-xcode-bazel
- Skillstore revision: r1
- Version status: missing
- Tree hash: fa206ef906e9cfad8864606dc8ba4bcdae909f6e028bb731b5d4e2ae64ef2b2c
- Author: limrun-inc
- GitHub username: limrun-inc
- License: MIT
- Repository: https://github.com/limrun-inc/skills/tree/e29a129cea3d311d2bd348eef1aadcd1b20397d5/skills/limrun-xcode-bazel
- Ref: c79b480950993002e3cfc6f31c87e6eb44b7d19b
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, filesystem, external\_commands, env\_access
- Quality score: 75
- Public page: https://skillstore.pages.dev/skills/limrun-inc-limrun-xcode-bazel
- Manifest: https://skillstore.pages.dev/api/skills/limrun-inc-limrun-xcode-bazel/manifest

## Capabilities

- Guides Limrun RBE setup from a Bazel workspace root.
- Provides the required SHA256 Bazel build invocation pattern.
- Explains remote iOS simulator attachment and automatic app installation.
- Supports one-time and automatic uploads of successful app builds.
- Distinguishes remote execution from local and remote cache hits.
- Diagnoses common Xcode, strategy, platform, cache, and genrule compatibility failures.

## Use Cases

- Build Apple Apps Without a Mac: Configure and run Bazel Apple builds on remote Mac workers from Linux, Windows, containers, or virtual machines.
- Prepare Remote Build Pipelines: Verify remote execution, manage uploaded artifacts, and apply repeatable Limrun settings for continuous integration workflows.
- Resolve Bazel RBE Failures: Trace Xcode pins, execution strategies, platform properties, cache behavior, and sandbox-hostile genrules that prevent remote builds.

## Prompt Templates

### Check Project Compatibility

```
Check whether this repository can use Limrun RBE. Identify the Bazel workspace root, Apple targets, required tools, and authentication prerequisites.
```

### Build an Apple Target

```
Set up Limrun RBE for this workspace and build the specified Apple target. Use the generated configuration and report the build result.
```

### Run on a Simulator

```
Build this single iOS app target, attach a remote simulator, and confirm automatic installation. Share only the user-facing simulator link.
```

### Diagnose Remote Execution

```
Investigate why this Bazel Apple build fails or uses cache instead of remote workers. Check execution strategies, Xcode settings, platform properties, and logs.
```

## Limitations

- Requires a Bazel workspace using Apple or Swift rules.
- Requires the Limrun CLI, authentication, and available remote resources.
- Does not interact with the running simulator after installation.
- Does not support plain xcodebuild projects or guarantee project-specific Bazel compatibility.

## Best Practices

- Run Limrun setup from the Bazel workspace root.
- Use the exact generated build command with SHA256 digests.
- Build one application target when automatic simulator installation is required.

## Anti Patterns

- Do not hand-edit generated Limrun configuration for routine setup.
- Do not treat cache hits as proof of remote action execution.
- Do not force Apple actions locally when the client lacks compatible Xcode tools.

## Security Audit

- Audited at: 2026-08-21T08:33:55.494\+00:00
- Summary: All 69 static findings are false positives caused by documentation syntax, Bazel terminology, illustrative paths, or expected Limrun endpoints. No prompt injection, secret extraction, covert exfiltration, or executable skill code was found.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
