Browse Source

Introjucer: made the Xcode exporter delete .rsrc files to force a rebuild which can be needed to update the version number.

tags/2021-05-28
jules 11 years ago
parent
commit
fce4188055
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h

+ 9
- 0
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h View File

@@ -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);


Loading…
Cancel
Save