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