【问题标题】:Xcode10: The operation couldn't be completed. (DVTCoreSimulatorAdditionsErrorDomain error 0.)Xcode10:操作无法完成。 (DVTCoreSimulatorAdditionsErrorDomain 错误 0。)
【发布时间】:2019-03-30 21:45:29
【问题描述】:

我试过了:

  • 重启模拟器和Xcode
  • 删除 Xcode 并重新安装
  • 运行xcrun simctl erase all这个命令

我已经尝试过,但无法解决这个问题

【问题讨论】:

  • 您是否尝试运行它xcrun simctl erase all。来源stackoverflow.com/a/52809338/2776008
  • 我有同样的问题
  • @QuocNguyen 显示此错误“处理命令时遇到错误(域 = com.apple.CoreSimulator.SimError,代码 = 164):无法擦除当前状态下的内容和设置:已启动”
  • 在Devices and Simulators窗口中一一删除所有模拟器。然后创建一个模拟器并尝试一下。

标签: ios xcode xcode10 swift4.1


【解决方案1】:

确保 xcrun 与您在 UI 中运行的 Xcode 安装相同:

检查:

xcode-select --print-path

改变:

sudo xcode-select -s {the-path-to}/Xcode.app/Contents/Developer

【讨论】:

    【解决方案2】:

    你可以删除这个模拟器再重新添加。我已经通过这种方式解决了这个问题。也许你可以试试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-16
      • 1970-01-01
      • 2016-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-21
      • 2016-10-22
      相关资源
      最近更新 更多