xcode IBAction NSButton shell script problem

Hi! Im trying to run a .sh script from Xcode AppDelegate.swift like so: @IBOutlet weak var Startsh: NSButtonCell!   @IBAction func Startsh(_ sender: NSButton) {

    sender.isEnabled = true     let task = Process()     task.launchPath = "/Users/xxxxx/zzzzzzz1_0_5_sh"     task.waitUntilExit()   }

I have also linked my Start-button to Mainmenu.xib App Delegate Received Action called Startsh

But after building succesfully and running I can't see on terminal-window that .sh process running. I'v been trying and studying without any results. Kilke56

I solved this problem finely my self by taking Sandbox off. Kilke56

xcode IBAction NSButton shell script problem
 
 
Q