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

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

你可能感兴趣的:(Use the device manager in Xcode or the simctl command line tool to either del)