如何在iOS系统下获取objective-c中的所有进程信息? [英] How to get all process info in objective-c under iOS system?

查看:509
本文介绍了如何在iOS系统下获取objective-c中的所有进程信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OS下,我可以使用GetCurrentProcess和GetNextProcessInfo获取进程信息。但是当我使用iOS系统下的函数时,我得到的链接错误如下:

Under Mac OS, i could use GetCurrentProcess and GetNextProcessInfo to get process infos. But when i use the functions under iOS system,i got the link errorslike:

架构i386的未定义符号:_ GetCurrentProcess_ GetProcessInformation....

Undefined symbols for architechture i386: "_GetCurrentProcess" "_GetProcessInformation"....

如何在iOS系统下获取objective-c中的所有流程信息?

How to get all process info in objective-c under iOS system?

推荐答案

是的,iOS上没有 GetCurrentProcess GetProcessInformation 调用,因为Apple希望每个应用程序都存在于自己的沙箱并且对手机上运行的其他应用程序一无所知。

Yes, there is no GetCurrentProcess or GetProcessInformation calls on iOS as Apple would prefer that each application live in it's own "sandbox" and know nothing about other apps running on the phone.

但是可能有办法估算你想要做的事情。

But there may be ways to approximate what you are trying to do.

以下是一些可能对您有所帮助的相关问题:

Here are a few related questions that may help you out:

我们可以检索当前在iPhone和iPad上运行的应用程序

如何在App Store批准的应用程序中获取有关可用内存和运行进程的信息? (是的,有一个!)

如何在iOS中运行活动进程

这些问题的答案可能会指向你你希望走向的方向。

The answers to these questions may point you in the direction you'd like to head towards.

祝你好运!

这篇关于如何在iOS系统下获取objective-c中的所有进程信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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