Reputation: 1045
I have the following code to find the iPhone's cache.db.
NSArray* paths1 = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString* cacheDir = [paths1 objectAtIndex:0];
NSLog(@"cache directory%@",cacheDir);
Which prints out this location.
/var/mobile/Containers/Data/Application/02DAB563-8FBC-44E2-854A-B8A1F8B90635/Library/Caches
However, I can't find the cache.db. This is strange because I can find the cache.db for simulators, but not iPhone. Is the cache.db hidden for actual iPhone devices. Any help is appreciated.
Upvotes: 1
Views: 987