Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>

This commit is contained in:
Matt Bruce 2026-01-10 15:12:01 -06:00
parent 81181c765d
commit c4221435b9

View File

@ -484,9 +484,28 @@ Create `Configuration/Release.xcconfig`:
In `project.pbxproj`, add file references and set `baseConfigurationReference` for each build configuration:
1. Add xcconfig file references to PBXFileReference section
2. Set `baseConfigurationReference` on Debug/Release configurations
3. Replace hardcoded values with variables:
**1. Add xcconfig file references to PBXFileReference section:**
```
/* Use SOURCE_ROOT and full path from project root */
EACONFIG001 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppName/Configuration/Base.xcconfig; sourceTree = SOURCE_ROOT; };
EACONFIG002 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppName/Configuration/Debug.xcconfig; sourceTree = SOURCE_ROOT; };
EACONFIG003 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppName/Configuration/Release.xcconfig; sourceTree = SOURCE_ROOT; };
```
**IMPORTANT**: Use `sourceTree = SOURCE_ROOT` (not `"<group>"`) and include the full path from project root (e.g., `AppName/Configuration/Base.xcconfig`).
**2. Set `baseConfigurationReference` on project-level Debug/Release configurations:**
```
EA123456 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EACONFIG002 /* Debug.xcconfig */;
buildSettings = { ... };
};
```
**3. Replace hardcoded values with variables:**
```
PRODUCT_BUNDLE_IDENTIFIER = "$(APP_BUNDLE_IDENTIFIER)";