Andrea
Andrea

Reputation: 81

How do I find the APP_UUID in Xcode for an iOS App?

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

Answers (4)

Tycholiz
Tycholiz

Reputation: 1200

Instead of having to remember these commands, a very simple and straightforward way is to simply:

  1. open top (or any activity manager)
  2. search for your application name

The location where your app is stored will be there

Upvotes: 0

Estevão Lucas
Estevão Lucas

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

Antzi
Antzi

Reputation: 13424

Go to

~/Library/Developer/CoreSimulator/Devices/ 

and type

find . -iname "*.app"

in a shell.

** Updated for Xcode 8 **

Upvotes: 7

Seamus Campbell
Seamus Campbell

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

Related Questions