如何在iOS应用程序的Xcode中findAPP_UUID?
iOS模拟器将应用程序存储在〜/ Library / Application Support / iPhone Simulator / 4.2 / Applications / APP_UUID /
但是,如何find特定项目/目标的APP_UUID?
去
~/Library/Developer/CoreSimulator/Devices/
和types
find . -iname "*.app"
在一个shell。
**更新了Xcode 8 **
我find的最简单的方法是在模拟器中运行应用程序,并使用NSLog标准path定位函数的结果,如下所示:
- (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]);