Site icon May's Notes

iOS模擬器啟動時出現 Failed to start launchd_sim

iPhone charging on MacBook

錯誤訊息

完整訊息

Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding

解決方法

有幾種方式:

  1. 調整 /Volumes/Macintosh\, HD/private/tmp 權限,對我沒用
sudo chmod 1777 /Volumes/Macintosh\ HD/private/tmp
  1. 調整 /tmp, /private/tmp 權限,對我沒用
sudo chown root:admin /tmp; sudo chmod 1777 /tmp
sudo chown root:wheel /private/tmp; sudo chmod 1777 /private/tmp

  1. 有清除快取,對我有用
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches
Exit mobile version