Xcode 模拟器运行报错 Unable to boot device because it cannot be located on disk.

运行项目报错 Unable to boot device because it cannot be located on disk. Domain: NSPOSIXErrorDomain

解决方法

终端执行以下命令

xcrun simctl erase all