Claude-skill-registry build-swift-project
Build and test the LocalizeAR Swift project using build.sh scripts. Use this skill whenever building, testing, or cleaning the project. NEVER use xcodebuild or swift build directly - always use build.sh.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/build-swift-project" ~/.claude/skills/majiayu000-claude-skill-registry-build-swift-project && rm -rf "$T"
manifest:
skills/data/build-swift-project/SKILL.mdsource content
Build LocalizeAR Project
This skill manages building and testing the LocalizeAR Swift project using build scripts that properly configure compilers.
CRITICAL: Always Use build.sh
NEVER use these commands directly:
xcodebuildswift buildswift test
ALWAYS use build.sh scripts instead - they configure Apple Clang to prevent gcc-12 conflicts from Homebrew.
Main Library (LocalizeAR)
Located at project root. Use
./build.sh:
| Command | Description |
|---|---|
| Debug build |
| Build and run tests |
| Optimized release build |
| Remove build artifacts |
Example Apps
LARExplorer (macOS)
Located at
Examples/LARExplorer/. Use ./Examples/LARExplorer/build.sh:
| Command | Description |
|---|---|
| Debug build |
| Run unit tests |
| Release build |
| Clean artifacts |
LARScan (iOS)
Located at
Examples/LARScan/. Use ./Examples/LARScan/build.sh if available.
Example Requests
- "Build the project" →
./build.sh - "Run the tests" →
./build.sh test - "Build LARExplorer" →
./Examples/LARExplorer/build.sh - "Test LARExplorer" →
./Examples/LARExplorer/build.sh test - "Clean everything" →
./build.sh clean
Why build.sh?
The build scripts:
- Set
andCC
to Apple Clang (not Homebrew's gcc-12)CXX - Prevent "unrecognized command-line option" errors
- Match CI/CD configuration exactly
- Display compiler versions for verification