该方法是私有方法,需 进行动态调用和字符串拼接进行混淆来通过苹果验证。
#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
NSDictionary *infoDictionary = [[NSBundle mainBundle]infoDictionary];
NSLog(@"infoDictionary:%@",infoDictionary);
infoDictionary :
A dictionary, constructed from the bundle's Info.plist file, that contains information about the receiver. If the bundle does not contain an Info.plist file, a valid dictionary is returned but this dictionary contains only private keys that are used internally by the NSBundle class. The NSBundle class may add extra keys to this dictionary for its own use.
http://itunes.apple.com/search?term=需要查询程序名字&entity=software 该请求为POST请求。
返回的JSON格式数据。通过解析JSON数据,查询关键字:
trackViewUrl 为应用程序的 itunes的URL;
trackId 为应用程序的id;
http://itunes.apple.com/lookup?id=trackId 可以定位查询某APP,该请求为POST请求。