Ashish
Ashish

Reputation: 375

How to run an executable in iOS App?

I want to run an executable file in my iOS app. (or execute some command line commands)

I think this can be done with the help of NSTask, but that doesn't seem to be available in iOS (its available for mac OS X only).

So,

  1. How can i run an executable from my app ? OR How can i execute shell commands from my app ?
  2. How can i make use of NSTask in iOS ?
  3. Are there any other libraries like NSTask which i can make use of ?
  4. If none of the above is possible, please let me know a way around.

I want my app to be uploaded on the app store, so please don't answer anything related to jailbreaking.

Also, Don't tell me apple would reject it, i want to take a chance.

Upvotes: 2

Views: 5526

Answers (1)

zaph
zaph

Reputation: 112857

You can't run an executable from your app due to the sandboxing. From the list 1-4 are not possible.

NSTask is not available because it would violate the sandboxing.

Upvotes: 2

Related Questions