先导入#import <objc/runtime.h>头文件
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
很遗憾,已被弃用,强烈要求苹果重新开放,这个方法对公司来说是个很好的风控信息啊