Post

Replies

Boosts

Views

Activity

Executing binary file in MacOS XCode app
I'm trying to execute a binary file called esptool from https://github.com/espressif/esptool/releases/tag/v4.6.2 inside of a MacOS XCode app. I've added the file to my project and try to execute it like so. let scriptName = "esptool" guard let scriptURL = Bundle.main.url(forResource: scriptName, withExtension: nil) else { return "Script file not found" } print(scriptURL.path) let esptoolPath = scriptURL.path let task = Process() let pipe = Pipe() task.executableURL = URL(fileURLWithPath: esptoolPath) task.arguments = components task.standardOutput = pipe However, when I run it it generates some files in the temp directory and gives me this error popup. How can I fix this? “libpython3.8.dylib” can’t be opened because Apple cannot check it for malicious software.
0
0
396
Jul ’23