Not able to open a process in authorization plugin in swift
问题 I am trying to open a cocoa GUI application from authorization plugin which runs during login. I have placed the application in /Library/Application Support/MyFolder/Example.app . I am using below environment and code to open the application. Environment OSX: 10.14.5 (Mojave) Xcode: 11.2.1 Swift: 4.2 Code let task = Process.init() task.launchPath = "/Library/Application Support/MyFolder/Example.app/Contents/MacOS/Example" task.arguments = ["Hi", "Hello"] task.launch() task.waitUntilExit()