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

笑着哭i 提交于 2019-11-29 14:39:54

Go to

~/Library/Developer/CoreSimulator/Devices/ 

and type

find . -iname "*.app"

in a shell.

** Updated for Xcode 8 **

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]);

Here is what you need:

xcrun simctl get_app_container booted com.bundle.identifier

just change com.bundle.identifier to your app bundle identifier

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!