如何获取iPhone中所有已安装应用程序的列表(Jailbroken)。我想从appstore获取已安装应用的完整列表?
答案 0 :(得分:1)
您无法从Appstore获取设备的安装应用程序列表,但您可以从设备获取安装应用程序的列表。我只是谷歌,并从
获得最佳答案get list of installed applications on iphone objective-c
Get list of installed apps on iPhone
Get list of all installed apps
你可以这样: -
-(void)appInstalledList
{
BOOL isDir = NO;
NSDictionary *cacheDienter;
NSDictionary *user;
static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";
NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];
NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];
if ([[NSFileManager defaultManager] fileExistsAtPath: path isDirectory: &isDir] && !isDir) // Ensure that file exists
{
cacheDienter = [NSDictionary dictionaryWithContentsOfFile: path];
user = [cacheDienter objectForKey: @"System"];
NSLog(@"%@",user);
// Then all the user (App Store /var/mobile/Applications) apps
}
}