本文介绍了安装Xcode 10 Beta后,Xcode 9 iOS Simulator变成黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道很多人早些时候问过这个问题.但是我认为我的情况有所不同.在我的情况下,已经安装了Xcode 9.2,我将macOS从10.13.2升级到了10.13.5.然后,我安装了Xcode 10 beta.现在,当我在Xcode 9.2上运行任何项目并尝试使用模拟器时,尽管我可以看到xcode日志,但它变成黑色.到目前为止我尝试过的事情,

I know that so many people have asked this question earlier. But I think my situation is different. In my case Xcode 9.2 was already installed and I upgraded macOS from 10.13.2 to 10.13.5. Then I installed Xcode 10 beta. Now when I'm running any project on Xcode 9.2 and try to use simulator, its becoming black though I can see the xcode logs. Things I have tried so far,

  1. 未安装的Xcode 10 Beta
  2. 正在卸载&重新安装Xcode 9.2
  3. 卸载Xcode 9.2并安装Xcode 9.4
  4. 重置内容和模拟器菜单中的设置
  5. 从模拟器菜单重启设备
  6. 调整大小模拟器.
  7. 帖子并清理了DerivedData, CoreSimulator,iOSDeviceSupport
  8. 重新从设备和模拟器中添加模拟器模拟器部分
  1. Uninstalled Xcode 10 Beta
  2. Uninstalling & reinstalling Xcode 9.2
  3. Uninstall Xcode 9.2 and install Xcode 9.4
  4. Reset Content & Settings from simulator menu
  5. Restart Device from simulator menu
  6. Resizing simulator.
  7. Followed this post and cleaned DerivedData, CoreSimulator, iOSDeviceSupport
  8. Re add simulators from devices & simulators section

现在我该怎么办?

推荐答案

尝试在终端中运行defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferRendererHint 3().请注意,这将迫使Simulator使用OpenGL而不是Metal,因此一旦修复,您将要使用0重新运行它.

Try running defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferRendererHint 3 in Terminal (source). Note that this will force Simulator to use OpenGL instead of Metal, so you'll want to re-run it with 0 once this gets fixed.

这篇关于安装Xcode 10 Beta后,Xcode 9 iOS Simulator变成黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 14:29