启动iOS模拟器时,它会立即关闭,但仍在后台运行

时间:2019-08-08 12:58:10

标签: xcode ios-simulator

当我尝试在Xcode 10.2(也出现在Xcode 10.3和beta 11 build 3中运行)中运行项目(甚至是默认的单视图应用程序)时,模拟器启动,然后关闭,但Xcode仍然认为它正在运行(看起来像是运行无头)。关于如何看到模拟器的任何想法?

到目前为止,我已经尝试了以下方法,但是我唯一能看到的模拟器是在其首次启动之后,它在启动后消失了。

  1. 卸载并重新安装Xcode(确保删除所有相关目录并重新启动系统)

  2. 在Xcode中从window -> Devices and simulators添加和删除模拟器

  3. 试图清除模拟器缓存xcrun simctl erase all

  4. 尝试运行以下sudo killall -10 com.apple.CoreSimulator.CoreSimulatorService

  5. 清除派生数据~/Library/Developer/Xcode/DerivedData/

我注意到的另一件事是,如果我跑步:/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator,我将收到以下错误:

Bus error: 10

但是如果我运行:sudo/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator,模拟器可以正常运行。

感谢您的帮助。

0 个答案:

没有答案
相关问题