Reputation: 81
iOS Simulator stores apps in ~/Library/Application Support/iPhone Simulator/4.2/Applications/APP_UUID/
But how do I find the APP_UUID for a specific Project/Target?
Upvotes: 8
Views: 8694
Reputation: 1200
Instead of having to remember these commands, a very simple and straightforward way is to simply:
top
(or any activity manager)The location where your app is stored will be there
Upvotes: 0
Reputation: 4678
Here is what you need:
xcrun simctl get_app_container booted com.bundle.identifier
just change com.bundle.identifier
to your app bundle identifier
Upvotes: 1
Reputation: 13424
Go to
~/Library/Developer/CoreSimulator/Devices/
and type
find . -iname "*.app"
in a shell.
** Updated for Xcode 8 **
Upvotes: 7
Reputation: 17906
The easiest way I've found is to run the app in the simulator and NSLog the result of a standard path-locating function, like this one:
- (NSString *)applicationDocumentsDirectory {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask,
YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
return basePath;
}
// elsewhere, like in -application:didFinishLaunching:withOptions:
NSLog(@"app doc directory: %@", [self applicationDocumentsDirectory]);
Upvotes: 2