iOS - 获取安装所有App的Bundle ID

先导入#import 头文件

Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

很遗憾,已被弃用,强烈要求苹果重新开放,这个方法对公司来说是个很好的风控信息啊

你可能感兴趣的:(iOS - 获取安装所有App的Bundle ID)