如何在iOS应用程序中运行可执行文件? [英] How to run an executable in iOS App?

查看:1205
本文介绍了如何在iOS应用程序中运行可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 iOS 应用程式中执行可执行档。 (或执行一些命令行命令)



我认为这可以在NSTask的帮助下完成,但是这似乎不是在iOS中可用



  1. $ b 可执行文件从我的应用程序? OR如何从我的应用程序执行shell命令?

  2. 如何使用 iOS 中的NSTask?

  3. 有没有任何其他图书馆像NSTask,我可以利用?

  4. 如果以上没有可能,请让我知道一个办法。

我希望我的应用程序上传到应用商店,所以请不要回答与越狱相关的任何内容。



另外,
不要告诉我苹果会拒绝它,我想要一次机会。

解决方案

由于沙箱,您无法从应用程序运行可执行文件。从列表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,

  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.

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆