首先,从https://github.com/KJCracks/Clutch/releases下载最新版源码
源码里有些代码在ios8中已经不适用,需要修改
listApplicationsForiOS8AndHigher函数中
//young
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
proxies=[workspace performSelector:@selector(allApplications)];
NSLog(@"apps:%@",proxies);
//young
//NSString *scinfo = [proxy.bundleURL.path stringByAppendingPathComponent:@"SC_Info"];
NSString *scinfo = [proxy.bundleURL.path stringByAppendingPathComponent:@""];
然后用xcode编译,拷贝到iphone中执行