Reputation: 433
I'm an absolute noob at iPhone development but I know a little C. I need to know how to execute an executable program (compatible under OS X) for an iPhone application. I know that in C system() can be used to invoke a separate program. The program has been tested on the mac terminal and works without any flaws. In addition, that program is part of a library deemed platform independent, meaning that it has programmatic support for multiple operating systems.
A question that derives from the last one is: would an OS X compatible executable reliably work on the iPhone OS as well? I know that the iPhone OS is very similar to its counterpart.
Thanks for any help.
Upvotes: 1
Views: 328
Reputation: 6081
The App Store User Agreement forbids system calls. You may not include any external programs with your app. NSTask (which is for executing programs in Cocoa) is NOT included with the iPhone OS. If you have the source to the C (or c++) file, you can compile it with your program and actually call the functions you need.
Its a sad, but true, reality :(
Upvotes: 7