From e8cc7b1dd633d5304a4dbe426ecaacde3a9bc1c9 Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 3 Feb 2013 13:37:36 +0000 Subject: [PATCH] Introjucer: Xcode prebuild script fix. --- .../Source/Project Saving/jucer_ProjectExport_XCode.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h index fe26e68f5a..d8e88ccc17 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -1151,6 +1151,11 @@ private: ValueTree& addBuildPhase (const String& phaseType, const StringArray& fileIds) const { String phaseId (createID (phaseType + "resbuildphase")); + + int n = 0; + while (buildPhaseIDs.contains (phaseId)) + phaseId = createID (phaseType + "resbuildphase" + String (++n)); + buildPhaseIDs.add (phaseId); ValueTree* v = new ValueTree (phaseId);