当我尝试在Xcode 10.2(也出现在Xcode 10.3和beta 11 build 3中运行)中运行项目(甚至是默认的单视图应用程序)时,模拟器启动,然后关闭,但Xcode仍然认为它正在运行(看起来像是运行无头)。关于如何看到模拟器的任何想法?
到目前为止,我已经尝试了以下方法,但是我唯一能看到的模拟器是在其首次启动之后,它在启动后消失了。
卸载并重新安装Xcode(确保删除所有相关目录并重新启动系统)
在Xcode中从window -> Devices and simulators
添加和删除模拟器
试图清除模拟器缓存xcrun simctl erase all
尝试运行以下sudo killall -10 com.apple.CoreSimulator.CoreSimulatorService
~/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
,模拟器可以正常运行。
感谢您的帮助。