XCode6.4 模擬器文件路徑
Finder —> 前往 —> 前往文件夾 —> 輸入路徑 /Library/Developer/CoreSimulator/Profiles/Runtimes/
新版安裝方法(Xcode 6):
新的 Xcode 并不會識別 SDKs 目錄下的模擬器袖肥,我經(jīng)過一些嘗試以后,發(fā)現(xiàn)要放在這個目錄下:
/Library/Developer/CoreSimulator/Profiles/Runtimes/
注意:是根目錄途茫,不在 Xcode 和 User 的目錄下
而且與舊版的模擬器不同,新版模擬器是以simruntime為后綴打包的(其實還是一個目錄),以7.1的模擬器為例:
[圖片上傳中。秦忿。。(1)]
如果這個目錄不存在的話赠堵,可以嘗試用 root 權限創(chuàng)建這個目錄:
進入終端
獲取root 權限:sudo -s
再創(chuàng)建這個目錄:mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes/
執(zhí)行復制:cp -R {模擬器路徑} /Library/Developer/CoreSimulator/Profiles/Runtimes/{模擬器}如:cp -R /Volumes/IOS\ /Xcode\ Simulators/iOS\ 7.1.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 7.1.simruntime
創(chuàng)建后查看這個目錄的信息小渊,會看到權限擁有者是 【system】而不是【你的用戶名】
如果做完上面這些步驟后 Xcode 還不能正確識別出模擬器,可以嘗試重啟下電腦(可能重啟 Finder 也行茫叭,我沒有測試)
權限不正確的情況下也能直接修改(除了模擬器本身的權限酬屉,還有它父級目錄的權限):
sudo chown -R root:wheel iOS\ 7.1.simruntime
參考: http://blog.csdn.net/zhangao0086/article/details/38491271