今天清理磁盤后,在Xcode 模擬器運行提示 Unable to boot device because it cannot be located on disk.

iOS模擬器刪除1.png
記錄下筆記
問題描述:本是彈框,忘記截圖,就把描述信息貼出來
Unable to boot device because it cannot be located on disk.
Use the device manager in Xcode or the simctl command line tool to either delete
the device properly or erase contents and settings.
解決辦法:
直接在控制臺運行以下指令,即可解決。
$ xcrun simctl erase all
完!