Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSTask or equivalent for iPhone [closed]

I've an open source project (gdal) that I want to compile and run as part of an iOS app. I had been expecting to use NSTask but I see now that it was removed in iOS 3.0. I've also seen elsewhere that running external applications, though this would be a resource in my app's bundle, is not allowed.

Has anyone else found a way to run commandline tools within their iOS applications?

like image 669
Craig Avatar asked Oct 08 '09 08:10

Craig


2 Answers

It wasn't removed in 3.0, it was never there. There is no way to run separate processes on the iPhone. GDAL appears to be under an MIT style license and has a library interface, so directly linking it into an iPhone app shouldn't have any legal or technical issues.

like image 169
Louis Gerbarg Avatar answered Sep 18 '22 02:09

Louis Gerbarg


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 will most likely not allow an app that uses NStask in the appstore. Cydia would probably be the best place to distribute your app

like image 36
romejoe Avatar answered Sep 19 '22 02:09

romejoe