XCode8 安装模拟器

1.下载模拟器

参考:http://blog.csdn.net/piratest/article/details/52538978

参考:http://blog.csdn.net/zhangao0086/article/details/38491271

2.无网安装模拟器

2.1    

双加下载好的com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg模拟器文件,知道安装完成

2.2  

cd /Library/Developer/CoreSimulator/Profiles/Runtimes/

若目录不存在则创建(Xcode的外网机安装过模拟器都会有这个目录)

sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes/

2.3  

在安装好模拟器的外网机 /Library/Developer/CoreSimulator/Profiles/Runtimes/ 找到iOS X.X.simruntime 的模拟器文件

拷贝2.3模拟器到内网机器的目录下 cp -R /iOS X.X.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS X.X.simruntime

2.4

执行复制:cp -R  {模拟器路径}  /Library/Developer/CoreSimulator/Profiles/Runtimes/{模拟器}

如:cp -R /Volumes/IOS\ /Xcode\ Simulators/iOS\ 8.1.simruntime  /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 8.1.simruntime

2.5

修改模拟器执行权限 -rx 或 755

sudo chmod 777 iOS\ 8.1.simruntime

重启Xcode,重启电脑,还是不行就另想办法吧,亲测Xcode6,7,8都安装成功

 

Xcode卸载

https://www.imymac.com/zh-CN/mac-uninstaller/uninstall-xcode-on-mac.html

posted @ 2017-04-27 16:49  南溟之巅  阅读(391)  评论(0编辑  收藏  举报