如何在macOS Finder中查找iPhone模拟器Files应用内存储的文件
正确查找路径的方法
方案1:一键打开(推荐)
确保你的目标模拟器处于运行状态,直接在macOS终端执行以下命令,会自动打开对应Downloads目录:
open $(xcrun simctl get_app_container booted com.apple.DocumentsApp groups | head -1)/"File Provider Storage"/Downloads
方案2:手动定位
完整的路径结构如下:
~/Library/Developer/CoreSimulator/Devices/<模拟器UUID>/data/Containers/Shared/AppGroup/<Files App共享组UUID>/File Provider Storage/Downloads/
参数说明:
<模拟器UUID>:可通过终端命令xcrun simctl list devices booted查询当前正在运行的模拟器UUID<Files App共享组UUID>:在AppGroup目录下,找到名称包含group.com.apple.DocumentsApp的目录即为目标目录
之前路径为空的原因
你查找的
~/Library/Developer/CoreSimulator/Devices/UUID/data/Downloads是模拟器的系统全局Downloads目录,和Files App内「On My iPhone」分区下的Downloads不属于同一个存储域。后者属于Files App的共享AppGroup管理范围,所以不会存储在根目录的Downloads文件夹下。
内容的提问来源于stack exchange,提问作者Senseful
相关产品推荐
相关产品推荐

