Skip to content

Commit 6e9c573

Browse files
Add a comment if file has no bulid settings
Change 'common' to 'shared' in ReadMe
1 parent 6821e39 commit 6e9c573

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

BuildSettingExtractor/BuildSettingExtractor.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ - (void)writeConfigFilesToDestinationFolder:(NSURL *)destinationURL {
120120
configFileString = [configFileString stringByAppendingString:includeDirective];
121121
}
122122

123+
// If there are no settings at all, add a comment that the lack of settings is on purpose
124+
if ([settings isEqualToString:@""]) {
125+
settings = [settings stringByAppendingString:@"//********************************************//\n"];
126+
settings = [settings stringByAppendingString:@"//* Currently no build settings in this file *//\n"];
127+
settings = [settings stringByAppendingString:@"//********************************************//"];
128+
129+
;
130+
}
131+
123132
configFileString = [configFileString stringByAppendingString:settings];
124133

125134
// Trim whitespace and newlines

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Using the app:
1717

1818
- BuildSettingExtractor does not alter the original Xcode project file.
1919
- BuildSettingExtractor does not update existing xcconfig files, it does a one-time extraction.
20-
- BuildSettingExtractor does not hoist common target build settings to the project level.
20+
- BuildSettingExtractor does not hoist shared target build settings to the project level.
2121
- Do not taunt BuildSettingExtractor.
2222

2323
**Version History**

0 commit comments

Comments
 (0)