Build Time Secret Injection

Use when introducing an AdMob production ID (`GADApplicationIdentifier` Info.plist key, ad unit IDs), ASC API `.p8` key, or any "ships in binary but must stay out of public-repo PR diffs" identifier into an Apple build. Codifies the xcconfig + Info.plist `$()` substitution + `Bundle.main` read pattern, paired with `secrets/.env` for CLI tooling; multi-app `CI_PRODUCT` dispatch + built-bundle smoke-test. Build-time injection mechanism, not the repo-hygiene baseline; for secret-leak prevention (gitleaks, lefthook, GitHub Secret Scanning) see apple-public-repo-security.

wei18 04a1b17 11.3 KB Updated

File contents

wei18/apple-dev-skills/tree/main/apple-dev-skills/skills/build-time-secret-injection commit 04a1b17e74

Frequently asked questions

npx skillmds@latest add wei18/build-time-secret-injection