I want to run a command in Swift using Process. This is my current code:
process.launchPath = "/bin/sh" process.arguments = ["symbolicatecrash", "crash.crash"] However, this executes the command as sh symbolicatecrash crash.crash. I want this command to be executed as ./symbolicatecrash crash.crash. How can I achieve the same in Swift.
I tried the following code (which is a run time crash)
process.launchPath = "" process.arguments = ["symbolicatecrash", "crash.crash"]