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

标签 ios macos process

在 Mac OS 下,我可以使用 GetCurrentProcess 和 GetNextProcessInfo 来获取进程信息。但是当我在 iOS 系统下使用这些功能时,我得到了链接错误,如:

架构i386的 undefined symbol :“_GetCurrentProcess”“_GetProcessInformation”......

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

最佳答案

是的,在 iOS 上没有 GetCurrentProcessGetProcessInformation 调用,因为 Apple 希望每个应用程序都生活在它自己的“沙盒”中,并且对运行在其上的其他应用程序一无所知电话。

但可能有一些方法可以近似您尝试做的事情。

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

Can we retrieve the applications currently running in iPhone and iPad

How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)

How to get the active processes running in iOS

这些问题的答案可能会为您指明前进的方向。

祝你好运!

关于ios - iOS系统下如何获取objective-c中的所有进程信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9886217/

相关文章:

macos - 带有docker的Vagrant多机尝试创建两个boot2docker vms

父进程与多个子进程之间的通信

ios - 替代覆盖 didChangeValueForKey : on NSManagedObject

macos - 变量在 Bash 中用 "echo"覆盖文本问题

javascript - 递归函数在 iOS 中提前结束

objective-c - Objective-C 中 const 实例变量的替代方案?

java - Exiftool 未在 ProcessBuilder 中打印到文件?

c++ - 进程 P2 可以通过什么方式访问另一个进程 P1 的局部变量?

c# - Unity 使用触摸旋转相机 - 移动

ios - 使用 openURL 的 '#' 结尾