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

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


Works like a charm:

#import <sys/sysctl.h>


sysctl is no longer accessible to sandboxed iOS 9 apps.

From WWDC 2015 session 703 Privacy and Your App:

In iOS 9, the sandbox now prevents a process from accessing the kern.proc, kern.procargs, and kern.procargs2 values for other processes

and

iOS apps are not permitted to see what other apps are running

So even if you find a way, you are likely to get rejected from the App Store.

https://developer.apple.com/videos/play/wwdc2015-703/