build
Build the WooCommerce iOS project
SKILL.md.claude/skills/build/SKILL.md
GitHubBuild the WooCommerce iOS project.
Use /simulator to select an available device. Run the build with that device's name:
bundle exec fastlane build_for_testing device:"<simulator-name>"
When you need a saved console log, use this variant instead:
set -o pipefail
mkdir -p .agent-artifacts
TASK_ARTIFACTS="$(mktemp -d "$PWD/.agent-artifacts/build.XXXXXX")"
printf 'Task artifacts: %s\n' "$TASK_ARTIFACTS"
bundle exec fastlane build_for_testing device:"<simulator-name>" 2>&1 | tee "$TASK_ARTIFACTS/build.log"
Check the pipeline exit status before reporting success. Keep the full log in the task artifact directory.
Use the same destination and build products for installation. An installed app may require
frameworks from that build; follow .agents/rules/verification.md if launch fails.
If the build fails:
- Analyze the error output — look for compilation errors, identify file and line
- Check if it is a missing import, type mismatch, syntax error, or stale generated code
- If stale codegen, run:
bundle exec rake generate - If
Unable to find a device matching— use the/simulatorskill to discover an available simulator, then retry - Suggest or apply the fix
If the build succeeds, report success.