I am working on an mac application where I needed to use different swift script to be executed on different actions.
let outputPipe = Pipe()
let errorPipe = Pipe()
let task:Process = Process()
task.launchPath = "/usr/bin/swift"
task.arguments = [filePath, scriptInput.string]
task.standardOutput = outputPipe
task.standardError = errorPipe
task.launch()
For executing swift script I am initializing the process with launch path /usr/bin/swift. On mac which don't have xcode installed my application ask to download command line tools.
Does Command Line Tools needed to be installed in mac in order to run swift scripts?