From 7760848cc08cab53533d311902c7c7934dbbfe60 Mon Sep 17 00:00:00 2001 From: Brentley Jones Date: Tue, 22 Mar 2016 13:55:28 -0500 Subject: [PATCH] Fix build error when there are spaces path When running the Generator the path needs to be escaped otherwise the build fails when you have spaces in your project path. --- Decodable.xcodeproj/project.pbxproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Decodable.xcodeproj/project.pbxproj b/Decodable.xcodeproj/project.pbxproj index 3c6ca85..a47ac54 100644 --- a/Decodable.xcodeproj/project.pbxproj +++ b/Decodable.xcodeproj/project.pbxproj @@ -518,7 +518,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if [ -z \"$CI\" ]; then\n cd ${SRCROOT}/Generator\n swift Generator.swift\nfi"; + shellScript = "if [ -z \"$CI\" ]; then\n cd \"${SRCROOT}/Generator\"\n swift Generator.swift\nfi"; }; 8F0062451C81F348007BCF48 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; @@ -531,7 +531,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if [ -z \"$CI\" ]; then\n cd ${SRCROOT}/Generator\n swift Generator.swift\nfi"; + shellScript = "if [ -z \"$CI\" ]; then\n cd \"${SRCROOT}/Generator\"\n swift Generator.swift\nfi"; }; 8F0062461C81F350007BCF48 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; @@ -544,7 +544,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if [ -z \"$CI\" ]; then\n cd ${SRCROOT}/Generator\n swift Generator.swift\nfi"; + shellScript = "if [ -z \"$CI\" ]; then\n cd \"${SRCROOT}/Generator\"\n swift Generator.swift\nfi"; }; 8F00624B1C81F6F1007BCF48 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; @@ -557,7 +557,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if [ -z \"$CI\" ]; then\n cd ${SRCROOT}/Generator\n swift Generator.swift\nfi"; + shellScript = "if [ -z \"$CI\" ]; then\n cd \"${SRCROOT}/Generator\"\n swift Generator.swift\nfi"; }; /* End PBXShellScriptBuildPhase section */