I'm trying to make an iOS app to run an executable file from code. The file is in /usr/bin/
, and I need to execute it with arguments.
How can I do it?
I'm trying to make an iOS app to run an executable file from code. The file is in /usr/bin/
, and I need to execute it with arguments.
How can I do it?
I was able to call some command line applications using NSTask
as described here:
NSTask or equivalent for iPhone
Including the NSTask.h header file from Mac OS X was enough to get this working on my jailbroken device.