[英]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/ iOS Simulator 将应用程序存储在 ~/Library/Application Support/iPhone Simulator/4.2/Applications/APP_UUID/
But how do I find the APP_UUID for a specific Project/Target?但是如何找到特定项目/目标的 APP_UUID?
Go to去
~/Library/Developer/CoreSimulator/Devices/
and type并输入
find . -iname "*.app"
in a shell.在一个壳里。
** Updated for Xcode 8 ** ** 针对 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:我发现的最简单的方法是在模拟器中运行应用程序并 NSLog 标准路径定位函数的结果,如下所示:
- (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只需将com.bundle.identifier
更改为您的应用程序包标识符
Instead of having to remember these commands, a very simple and straightforward way is to simply:不必记住这些命令,一个非常简单直接的方法是:
top
(or any activity manager)开top
(或任何活动管理器)The location where your app is stored will be there存储您的应用程序的位置将在那里
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.