diff --git a/Agents.md b/Agents.md index eb91bf2..3cfb43f 100644 --- a/Agents.md +++ b/Agents.md @@ -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 `""`) 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)";