Xcode6以后mac中iOS模拟器安装路径以及程序沙箱路径

来源:互联网 发布:淘宝脸部验证 编辑:程序博客网 时间:2024/05/18 00:30
Xcode6之前,ios模拟器目录的路径:/Users/username/Library/Application Support/iPhone Simulator/
Xocde6之后改了路径,打开模拟器沙盒目录:
文件都在个人用户名文件夹下的一个隐藏文件夹里,中文叫资源库,他的目录其实是Library。

方法1、可以设置显示隐藏文件,然后在Finder下直接打开。设置查看隐藏文件的方法如下:打开终端,输入命名

显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true

隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false

输完单击Enter键,退出终端,重新启动Finder就可以了重启Finder:鼠标单击窗口左上角的苹果标志--
现在能看到资源库文件夹
打开资源库后找到/Users/username/Library/Developer/CoreSimulator/Devices/文件夹。这里面就是模拟器的各个程序的沙盒目录了。
方法2、这种方法更方便,在Finder上点->前往->前往文件夹,输入/Users/username/Library/Developer/CoreSimulator/Devices/  前往
username这里写你的用户名。

模拟器安装位置
/Users/username/Library/Developer/CoreSimulator/Devices/模拟器标识(一些字符串)

后面那些模拟器标识就是一些字符串代表每一个不同的iOS设备 
比如D3E79030-5DB9-4E5B-8E46-5C3B100A4C1C就代表这是iPhone4S,点击进去查看device.plist这个文件就能知道。

iOS应用程序资源文件位置
/Users/username/Library/Developer/CoreSimulator/Devices/模拟器标识/data/Containers/Bundle/Application/iOS应用程序 
然后右击包内容就可以查看。

iOS应用程序归档存储位置(数据持久化存储位置)
/Users/username/Library/Developer/CoreSimulator/Devices/模拟器标识/data/Containers/Data/Application/iOS应用程序/Documents…

后面的documents也可能是library文件夹
0 0
原创粉丝点击