This skill helps you set up and troubleshoot Xcode Cloud workflows and custom ci_scripts for iOS apps, including XcodeGen generation and tagging.
npx playbooks add skill vladimirbrejcha/ios-ai-skills --skill xcode-cloud
Use Apple documentation as the authority for Xcode Cloud lifecycle behavior.
Keep this skill focused on workflow configuration, custom scripts, dependency
policy, and CI diagnosis. Use xcode-build for local build and simulator work,
and ios-xcodegen for XcodeGen project-spec semantics.
.xcodeproj or .xcworkspace selected by the workflow.before configuring Xcode Cloud. A generated and ignored project is not a
safe default.
repository path used by the workflow.
scripts in a top-level ci_scripts directory beside the selected project or
workspace.
disposable branch before rollout.
Apple recognizes these executable top-level lifecycle names underci_scripts/:
ci_post_clone.shci_pre_xcodebuild.shci_post_xcodebuild.shThe post-build script runs even when xcodebuild fails. Never infer success
from a missing exit code or action. Require the documented variables for the
selected action and reject missing, malformed, or failed state.
Keep logs free of secrets. Do not place credentials in remote URLs, command
arguments, or echoed environment dumps.
Do not use post-clone generation to create the project or workspace Xcode Cloud
needs for initial configuration. Prefer committing the generated project when
the repository deliberately uses XcodeGen.
Use regeneration during a build only as a separately reviewed exception. The
repository must prove the selected Xcode and XcodeGen versions with a fixture,
own deterministic tool acquisition, and keep the expected project continuously
present. assets/ci_pre_xcodebuild.sh is an opt-in guard for that exception:
ALLOW_XCODEGEN_REGENERATION=1PROJECT_SPEC_PATH and EXPECTED_PROJECT_PATH valuesto remain inside the canonical repository root before deletion
EXPECTED_PROJECT_PATH to name an .xcodeproj; it rejects.xcworkspace paths because XcodeGen does not regenerate a selected workspace
through this guard
CI_PRIMARY_REPOSITORY_PATH; outside Xcode Cloud, it falls back to the
directory that contains ci_scripts
XCODEGEN_REQUIRED_VERSION and verifies the exact installed toolPackage.resolved stored inside the committed projectcontainer while regenerating that container
Copy it only after those project-specific conditions are reviewed, then runchmod +x ci_scripts/ci_pre_xcodebuild.sh.
This skill does not include a tag-push template. Release tags and other remote
mutations need a separate authorization contract with a mandatory ref
allowlist, a known successful Archive action, least-privilege credentials that
are not embedded in URLs, remote-first idempotency, safe retry behavior, and
isolated failure fixtures.
retrieval date with project-specific conclusions.
tool versions as configuration failures, not successful no-ops.
references/xcode-cloud-notes.md for the reviewed source set anddiagnostic checklist.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.