NSTask or equivalent for iPhone

I have an open source project (gdal) that I want to compile and run as part of an iOS application. I expected to use NSTask, but now I see that it was deleted in iOS 3.0. I also saw in other places that running external applications, although this will be a resource in my application, is not allowed.

Has anyone else found a way to run command line tools in their iOS apps?

+5
source share
3 answers

It was not removed in 3.0, it was never there. Unable to start individual processes on iPhone. GDAL , apparently, is under the MIT style license and has a library interface, so directly linking it to the iPhone application should not have any legal or technical problems.

+7
source

NSTask is available in ios 4, ios 3, and possibly all of them. To use NStask, I had to copy the NStask header file from my mac to my project folder. Also, Apple, most likely, will not allow the use of an application that uses NStask in the AppStore. Cydia will probably be the best place to distribute your application.

+1
source

Just a reminder:
NSTask will not work in a sandbox environment (you will get "disable the fork process"). So add your application to / Applications

0
source

All Articles