且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法在iOS模拟器上查看文件系统?

更新时间:2023-02-25 13:29:57

更新:自iOS 8起:

〜/ Library / Developer / CoreSimulator / Devices

以前的位置be:

〜/ Library / Application Support / iPhone Simulator

~/Library/Application Support/iPhone Simulator

它有所有模拟器模型的目录( 4.0,4.1,5.0等)你曾经运行过,转到你在Xcode中运行的那个。

It had directories for all models of simulators (4.0, 4.1, 5.0, etc) you have ever run, go to the one you are running from in Xcode.

进入文件夹后,转到应用程序,选择Finder选项,显示文件的日期,并按日期排序。您的应用程序将是最新的,因为它只是更改了目录...

Once in a folder, go to Applications, choose the Finder option that shows date for files, and sort by date. Your application will be the most recent since it just changed the directory...

目录中包含与您的应用程序相关的所有内容。您甚至可以在运行之间删除文件,以恢复到已知状态的存储数据库,例如......

Inside the directory is everything related to your application. You can even drop files in there between runs, to revert back to a stored database in a known state for example...

我经常去那里我保留iPhone我的Finder侧栏中的模拟器目录。

I go there often enough I keep the iPhone Simulator directory in my Finder sidebar.

请注意,对于iOS8,模拟器文件夹位于一个完全不同的目录中 - 实际上分成几个目录,具有特定于应用程序的文件夹名称每次运行应用程序时都会更改的文件。

Note that with iOS8, the simulator folders are in a totally different directory - really split across a few directories, with folder names for application specific files that change each time you run your app.