Mehul Thakkar Mehul Thakkar - 1 year ago 132
iOS Question

Get list of all installed application in ios 8

How to get list of all installed Applications on iPhone device programmatically in iOS 8.

If anyone knows the solution by using private APIs(but device non-jailbroken) then its well and good.

I know that it is possible using iTunes Search API, but it gives only those applications that are installed from iTunes. I need all the applications on device, whether it is from iTunes or user-developed or system apps.

Answer Source

try this. it works,I've tested.

#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download