From 446fe20c4a2fdf96a7d14a4367ab47304d6999a8 Mon Sep 17 00:00:00 2001 From: Johannes Lund Date: Tue, 22 Mar 2016 22:37:35 +0100 Subject: [PATCH] #82 Specify mac as target for running Generator.swift Messed up builds for non-simulator devices otherwise --- Decodable.xcodeproj/project.pbxproj | 8 ++++---- Generator/Generator.swift | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 Generator/Generator.swift diff --git a/Decodable.xcodeproj/project.pbxproj b/Decodable.xcodeproj/project.pbxproj index a47ac54..45d2c02 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 ./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 ./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 ./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 ./Generator.swift\nfi"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/Generator/Generator.swift b/Generator/Generator.swift old mode 100644 new mode 100755 index 9d9751e..b15a36a --- a/Generator/Generator.swift +++ b/Generator/Generator.swift @@ -1,3 +1,5 @@ +#!/usr/bin/xcrun --sdk macosx swift + // // Generator.swift // Decodable