iPhone Simulator location

前端 未结 17 1991
时光取名叫无心
时光取名叫无心 2020-12-12 10:32

Where on my machine is the iPhone simulator installed?

I\'m been trying to find where a test application I run in the simulator is stored.

17条回答
  •  囚心锁ツ
    2020-12-12 10:51

    As of Xcode 6 and iOS 8 you’ll find it here:

    ~/Library/Developer/CoreSimulator/Devices/{cryptic number}/data/Containers/Data/Application/{cryptic number}/
    

    or you can get it from below code execution:

     NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
    

提交回复
热议问题