Use the device manager in Xcode or the simctl command line tool to either del

今天清理Xcode缓存之后,运行项目提示这样的错误

Use the device manager in Xcode or the simctl command line tool to either delete the device properly or erase contents and settings.

这是因为在清理Xcode缓存的时候,把模拟器的配置不小心删除了
解决方法:

  • 打开Xcode -> Open Developer Tool -> iOS simulator
  • Hardware -> Device -> Manage Devices

把模拟器全部删除,然后添加你想用的模拟器加回来。不需要重新下载模拟器

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容