From fce41880551cd4dc03eb2eec93cd91424a110b87 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 23 Mar 2015 17:37:36 +0000 Subject: [PATCH] Introjucer: made the Xcode exporter delete .rsrc files to force a rebuild which can be needed to update the version number. --- .../Source/Project Saving/jucer_ProjectExport_XCode.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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);