Draft
Conversation
Add Debug, Beta, Release, and Local xcconfig files in a Configuration group. Debug includes Local via optional #include. Each config has placeholder keys for API_KEY, API_BASE_URL, and OTHER_SWIFT_FLAGS. Xcconfigs are wired to build configurations via baseConfigurationReferenceRelativePath. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add reusable ConfigKey protocol to FuturedHelpers for type-safe access to Info.plist values from xcconfig with Base64 decoding support. Add instructional comments to all xcconfig files explaining how to wire keys to Info.plist and access them using ConfigKey. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove placeholder TODOs from Beta and Release configs, replacing them with notes about CI-injected values. Update Debug config with Local.xcconfig guidance for API keys.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds xcconfig-based configuration management to the SwiftUI App template with per-environment config files (Debug, Beta, Release, Local) and a new
ConfigKeyprotocol in FuturedHelpers for type-safe Info.plist value retrieval with automatic Base64 decoding.Changes
ConfigKeyprotocol with default implementation that reads fromBundle.mainInfo.plist and auto-decodes Base64 valuesConfigKeyErrorwith descriptive error messages guiding developers to check xcconfig/Info.plist wiringLocal.xcconfigvia#include?for git-ignored local secretsTemplateInfo.plistupdated to wire all xcconfig files into the Xcode project template under aConfigurationgroupDiagram
View diagram
flowchart TD subgraph xcconfig["xcconfig files"] Local["Local.xcconfig\n(git-ignored secrets)"] Debug["Debug.xcconfig\n(dev settings)"] Beta["Beta.xcconfig\n(CI injected)"] Release["Release.xcconfig\n(CI injected)"] end Local -->|"#include?"| Debug Debug --> Build["Build Settings"] Beta --> Build Release --> Build Build --> Plist["Info.plist\n$(KEY_NAME)"] Plist --> ConfigKey["ConfigKey protocol\n(auto Base64 decode)"] ConfigKey --> App["App code\ntry AppConfigKey.apiKey.value"]Notes
Local.xcconfigshould be added to.gitignorein consumer projects to keep secrets out of version control