diff --git a/BuildSettingExtractor/BuildSettingExtractor.m b/BuildSettingExtractor/BuildSettingExtractor.m index 56f8996..518726f 100644 --- a/BuildSettingExtractor/BuildSettingExtractor.m +++ b/BuildSettingExtractor/BuildSettingExtractor.m @@ -120,6 +120,15 @@ - (void)writeConfigFilesToDestinationFolder:(NSURL *)destinationURL { configFileString = [configFileString stringByAppendingString:includeDirective]; } + // If there are no settings at all, add a comment that the lack of settings is on purpose + if ([settings isEqualToString:@""]) { + settings = [settings stringByAppendingString:@"//********************************************//\n"]; + settings = [settings stringByAppendingString:@"//* Currently no build settings in this file *//\n"]; + settings = [settings stringByAppendingString:@"//********************************************//"]; + + ; + } + configFileString = [configFileString stringByAppendingString:settings]; // Trim whitespace and newlines diff --git a/ReadMe.md b/ReadMe.md index bce6fe6..062e66f 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -17,7 +17,7 @@ Using the app: - BuildSettingExtractor does not alter the original Xcode project file. - BuildSettingExtractor does not update existing xcconfig files, it does a one-time extraction. -- BuildSettingExtractor does not hoist common target build settings to the project level. +- BuildSettingExtractor does not hoist shared target build settings to the project level. - Do not taunt BuildSettingExtractor. **Version History**