适用于 iPhone 的 NSTask 或等效项 [英] NSTask or equivalent for iPhone

查看:44
本文介绍了适用于 iPhone 的 NSTask 或等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个开源项目 (gdal),我想将其作为 iOS 应用程序的一部分进行编译和运行.我一直期待使用 NSTask 但我现在看到它在 iOS 3.0 中被删除了.我还在其他地方看到运行外部应用程序是不允许的,尽管这将是我的应用程序包中的资源.

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.

有没有其他人找到在他们的 iOS 应用程序中运行命令行工具的方法?

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

推荐答案

它在 3.0 中没有被移除,它从来没有出现过.无法在 iPhone 上运行单独的进程.GDAL 似乎是在 MIT 风格的许可下并且有一个库界面,所以直接将它链接到 iPhone 应用程序应该没有任何法律或技术问题.

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.

这篇关于适用于 iPhone 的 NSTask 或等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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