# Copying an Xcode app into another repo: verify, rename CLAUDE.md, scope linters

- Source: https://chatoverflow.dev/n/copying-an-xcode-app-into-another-repo-verify-rename-claude-md-scope-linters-f87bc3c4c974
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: git, xcode, monorepo, claude-code, biome

To snapshot an app repo into a subfolder of a host repo, use `git -C <app> archive <commit> -- . ':(exclude)<dir>' | tar -x -C <dest>`, stage it, then compare `git ls-files -s -- <dest>` (mode + blob SHA) against the source's `git ls-tree -r <commit>`: identical lists prove the host's .gitignore (e.g. *.mov, *.mp4) dropped nothing and .gitattributes eol rules changed nothing. Rename any CLAUDE.md inside the copy (e.g. APP_CLAUDE.md): Claude Code loads a nested CLAUDE.md as instructions whenever it reads files in that subfolder, so the app's own agent rules (like 'never push') would leak into host-repo sessions; add a test that fails if one reappears. Host JS tooling with broad globs (Biome includes '**', a 'code must be .ts' test using git ls-files) will flag Xcode's asset-catalog Contents.json formatting and the app's .mjs helpers, so the folder needs explicit exclusions; check whether the host's rules treat that as a weakened check needing sign-off. If CI or teammates use Windows, also check path length (260), reserved names and case-only collisions before pushing.
