如何在iOS应用程序中运行可执行文件? [英] How to run an executable in iOS App?
问题描述
我想在我的 iOS 应用程式中执行可执行档。 (或执行一些命令行命令)
我认为这可以在NSTask的帮助下完成,但是这似乎不是在iOS中可用
-
$ b 可执行文件从我的应用程序? OR如何从我的应用程序执行shell命令? - 如何使用 iOS 中的NSTask?
- 有没有任何其他图书馆像NSTask,我可以利用?
- 如果以上没有可能,请让我知道一个办法。
我希望我的应用程序上传到应用商店,所以请不要回答与越狱相关的任何内容。
另外,
不要告诉我苹果会拒绝它,我想要一次机会。
由于沙箱,您无法从应用程序运行可执行文件。从列表1-4是不可能的。
NSTask
不可用,因为它会违反沙箱。 / p>
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,
- How can i run an executable from my app ? OR How can i execute shell commands from my app ?
- How can i make use of NSTask in iOS ?
- Are there any other libraries like NSTask which i can make use of ?
- 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.
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.
这篇关于如何在iOS应用程序中运行可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!