iOS11/iOS12上通过LSApplicationWorkspace获取应用列表(只能获取带有 plugin 的app)

哥们,就不能获取所有的应用列表吗?

那你写一个分享出来呀

就是不会呀,大佬会不会

id space = [NSClassFromString(@“LSApplicationWorkspace”) performWithSelectorName:@“defaultWorkspace”];
for (id app in [space performWithSelectorName:@“allInstalledApplications”]) {
    NSLog(@"%@", [app performWithSelectorName:@“applicationIdentifier”]);
}