Curt Rand
Curt Rand

Reputation: 1045

Is there an actual iPhone App cache.db available to view just like a simulator?

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

Answers (1)

picciano
picciano

Reputation: 22711

The file will be on the device, not your local file system.

Upvotes: 1

Related Questions