Skip to content

Commit

Permalink
update to Xcode 11 path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaakati authored Sep 24, 2019
1 parent 8c2123c commit c927264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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("====================================")
Expand All @@ -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)"){

Expand Down

0 comments on commit c927264

Please sign in to comment.