How do I add a unix executable to a Swift Xcode project for MacOSX, then use it?
Trying to write a wrapper for ffmpeg, without the user having to install ffmpeg beforehand.
Not a home screen thread, don't care.
>>51988694
Swift programmers are retards.
>>51989130
ok, bud
bet you're either a noob or an illiterate
>>51988694
You pay Apple $50 dollars.
>>51988694
https://github.com/chrisballinger/FFmpeg-iOS
>>51989431
That is helpful, thank you.
Now I just need to get it compiled for OS X instead of iOS
Save it in a designated location and write your app to interface with command line
>>51990336
...bonus points if it's a location that can be used with homebrew
>>51990336
i would do that, but it's the easy way, and it complicates it for the user, because they will have to install ffmpeg, and even still, have to install it in the correct location.
i'm trying to follow the user first design principle and make this as turnkey as it can be, while hopefully learning something along the way
>>51990336
if i did that i could use NSTask() to run all of the commands, but if I include it in the bundle, all I have to do is call NSBundle(), load it, point to it, then execute the commands, without ever having to cast from Strings, if i understand everything correctly
If I create a .framework with ffmpeg, and set it's installation path to /Library/Frameworks, that could do the trick, and essentially be the same thing as >>51990336, is that right?
>>51990423
In that case include a dialog that allows the user to download/update ffmpeg in your desired location. But first you have to find a reliable source for the binary. From there just interface with it