[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

How do I add a unix executable to a Swift Xcode project for MacOSX, then use it?Trying


Thread replies: 13
Thread images: 1

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
Thread replies: 13
Thread images: 1
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK