Skip to content

Allow configuring DEVELOPMENT_TEAM via BundleIdSecrets.xcconfig - #722

Merged
ryanbr merged 1 commit into
ryanbr:mainfrom
jbergler:bundle-id-team
Jul 22, 2026
Merged

ryanbr merged 1 commit into
ryanbr:mainfrom
jbergler:bundle-id-team

Conversation

@jbergler

Copy link
Copy Markdown

Summary

  • Selecting a Development Team in Xcode's UI writes DEVELOPMENT_TEAM directly into the generated (gitignored) project.pbxproj, which xcodegen generate silently resets on the next run.
  • Moves DEVELOPMENT_TEAM onto the same xcconfig chain BUNDLE_ID_PREFIX already uses (Config/BundleId.xcconfig tracked default, optionally overridden in the gitignored Config/BundleIdSecrets.xcconfig), so a team survives regeneration.
  • Default behavior is unchanged: no team set anywhere still resolves to empty, matching today's ad-hoc macOS build path (verified via xcodebuild -showBuildSettings, no DEVELOPMENT_TEAM override lands in project.pbxproj).
  • Documents the new option in docs/BUILD.md near the existing iOS on-device signing note.

Test plan

  • xcodegen generate regenerates cleanly
  • xcodebuild -showBuildSettings confirms DEVELOPMENT_TEAM resolves correctly from BundleIdSecrets.xcconfig for both NOOPiOS and Strand targets
  • Confirmed project.pbxproj carries no hardcoded DEVELOPMENT_TEAM override (falls through to xcconfig)
  • Manual: set a real team in BundleIdSecrets.xcconfig, open Strand.xcodeproj, confirm Signing & Capabilities shows it selected and a re-xcodegen generate doesn't reset it

🤖 Generated with Claude Code

https://claude.ai/code/session_01EhAkbjfHQ6Ja1N6L1DBRbY

Selecting a team in Xcode's UI writes DEVELOPMENT_TEAM straight into the
generated (gitignored) project.pbxproj, which xcodegen generate silently
wipes on the next run. Move it to the same xcconfig chain BUNDLE_ID_PREFIX
already uses so a team, once set, survives regeneration.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhAkbjfHQ6Ja1N6L1DBRbY
@ryanbr
ryanbr merged commit bb7c13d into ryanbr:main Jul 22, 2026
1 check passed
@ryanbr ryanbr mentioned this pull request Jul 22, 2026
simoncad7 pushed a commit to simoncad7/noop that referenced this pull request Aug 17, 2026
Allow configuring DEVELOPMENT_TEAM via BundleIdSecrets.xcconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants