0
我正在开发一个阅读Safari网页历史的Jailbroken iPhone设备的应用程序。我知道历史存储在/private/var/mobile/Library/Safari/History.plist
,所以我写了下面的代码来访问它。我和我一起越狱了iPhone 3GS。在Jailbroken上阅读Safari的历史记录iPhone
NSString *plistPath = @"/private/var/mobile/Library/Safari/History.plist";
if (![[NSFileManager defaultManager] fileExistsAtPath:plistPath]) {
NSLog(@"History does not exist %@",plistPath);
}else{
NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
}
当我在我的iPhone 3GS上调试此代码时,它无法在此路径中找到该文件。我通过iExplorer
软件浏览了我的设备,我可以使用iExplorer
访问History.plist
文件。任何人都可以请指导我为什么我的代码无法访问plist文件?
感谢和最好的问候。
你使用Xcode编程? – Neeku
是的Neeku我正在使用Xcode 5 – Aqueel
嗯...你可以真正建立并运行项目到iPhone 3GS?因为它不再被支持,Xcode也不会接受它,即使它已经越狱了,据我所知......: -/ – Neeku