我想查看iPhone模拟器中的应用程序目录,以便我可以看到在使用我的应用程序时它正在创建哪些文件以及这些文件中有什么内容(例如,当它为Core Data创建sqlite文件等)。
我想查看iPhone模拟器中的应用程序目录,以便我可以看到在使用我的应用程序时它正在创建哪些文件以及这些文件中有什么内容(例如,当它为Core Data创建sqlite文件等)。
你可以在这里找到它
~/Library/Application Support/iPhone Simulator/User/Applications
~/Library/Application Support/iPhone Simulator/User/Applications
如果你重新构建你的应用程序,该应用程序目录将被重命名。我通常按最近排序列表并查看其中最新的目录。
自至少Xcode 6.1以来,我的应用程序被转储在
~/Library/Developer/CoreSimulator/Devices/<hexstring>/data/Containers/Bundle/Application/<hexstring>
您可以通过将以下内容粘贴到您喜欢的终端中,进入最近安装的应用程序:
cd ~/Library/Developer/CoreSimulator/Devices/
cd $(ls -t | head -1)
cd data/Containers/Bundle/Application
cd $(ls -t | head -1)