From c927264fee96ac4274c4c3d4a791d0cace49abc6 Mon Sep 17 00:00:00 2001 From: Mohamad Kaakati Date: Tue, 24 Sep 2019 20:30:29 +0300 Subject: [PATCH] update to Xcode 11 path --- install.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.swift b/install.swift index 25ee735..43db863 100755 --- a/install.swift +++ b/install.swift @@ -9,7 +9,7 @@ import Foundation let templateName = "MVVM Module.xctemplate" -let destinationRelativePath = "/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application" +let destinationRelativePath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application" func printInConsole(_ message:Any){ print("====================================") @@ -20,7 +20,7 @@ func printInConsole(_ message:Any){ func moveTemplate(){ let fileManager = FileManager.default - let destinationPath = bash(command: "xcode-select", arguments: ["--print-path"]).appending(destinationRelativePath) + let destinationPath = destinationRelativePath //bash(command: "xcode-select", arguments: ["--print-path"]).appending(destinationRelativePath) do { if !fileManager.fileExists(atPath:"\(destinationPath)/\(templateName)"){