From 2bacad372fccc744864f74fbeda49bffb253b031 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 22 Dec 2014 09:40:12 +0000 Subject: [PATCH] Introjucer: Fix for handling spaces in some Xcode project paths. --- .../Source/Project Saving/jucer_ProjectExport_XCode.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h index a86d2afc93..bbfd6b9acd 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -287,6 +287,11 @@ private: return path; } + static String addQuotesIfContainsSpace (const String& s) + { + return s.containsChar (' ') ? s.quoted() : s; + } + File getProjectBundle() const { return getTargetFolder().getChildFile (project.getProjectFilenameRoot()).withFileExtension (".xcodeproj"); } //============================================================================== @@ -754,8 +759,8 @@ private: RelativePath binaryPath (config.getTargetBinaryRelativePathString(), RelativePath::projectFolder); binaryPath = binaryPath.rebased (projectFolder, getTargetFolder(), RelativePath::buildTargetFolder); - s.add ("DSTROOT = " + sanitisePath (binaryPath.toUnixStyle())); - s.add ("SYMROOT = " + sanitisePath (binaryPath.toUnixStyle())); + s.add ("DSTROOT = " + addQuotesIfContainsSpace (sanitisePath (binaryPath.toUnixStyle()))); + s.add ("SYMROOT = " + addQuotesIfContainsSpace (sanitisePath (binaryPath.toUnixStyle()))); } else {