美文网首页
不越狱获取bundleid

不越狱获取bundleid

作者: 阳明先生x | 来源:发表于2021-05-11 15:31 被阅读0次

    // 1.获取bundleid

        id space = [NSClassFromString(@"LSApplicationWorkspace") performSelector:@selector(defaultWorkspace)];
        NSArray *plugins = [space performSelector:@selector(installedPlugins)];
        NSMutableSet *list = [[NSMutableSet alloc] init];
        for (id plugin in plugins) {
            id bundle = [plugin performSelector:@selector(containingBundle)];
            if (bundle)
                [list addObject:bundle];
        }
        for (id plugin in list) {
            NSLog(@"applicationIdentifier=%@", [plugin performSelector:@selector(applicationIdentifier)]);
        }
    

    相关文章

      网友评论

          本文标题:不越狱获取bundleid

          本文链接:https://www.haomeiwen.com/subject/rstndltx.html