处理Xcode模拟器文件被误删除后,打不开问题

3,593 阅读1分钟

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 list

列出所有已经安装的模拟器,

A3CC3027-3D9C-4ED1-B4E1-667F208F9258 (active, disconnected)
    Watch: Apple Watch Series 5 - 40mm (735F5653-2A08-46D2-BAF2-1B418490C5EA) (Shutdown)
    Phone: iPhone 11 Pro (4FAE2219-02FF-4976-A896-225864E5B287) (Shutdown)

抹除模拟器数据

xcrun simctl erase 4FAE2219-02FF-4976-A896-225864E5B287