diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h index 923dcc2f64..9fd00508a2 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -154,6 +154,9 @@ public: } writeInfoPlistFile(); + + // Deleting the .rsrc files can be needed to force Xcode to update the version number. + deleteRsrcFiles(); } protected: @@ -608,6 +611,12 @@ private: overwriteFileIfDifferentOrThrow (infoPlistFile, mo); } + void deleteRsrcFiles() const + { + for (DirectoryIterator di (getTargetFolder().getChildFile ("build"), true, "*.rsrc", File::findFiles); di.next();) + di.getFile().deleteFile(); + } + String getHeaderSearchPaths (const BuildConfiguration& config) const { StringArray paths (extraSearchPaths);