Xcode 9 iOS Simulator becoming black screen after installing Xcode 10 beta

不打扰是莪最后的温柔 提交于 2019-11-30 17:31:28

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.

try workaround, delete Library/Developer folder and start it again

Another option that occurred for me. I subclassed UIWindow and called .init(frame: .zero). Changing to .init(frame: UIScreen.main.bounds) fixed it.

Open up XCode 9 and go to add additional simulators(pictured below) re-add iOS 10 and iOS 11 simulators

You seem to have tried everything except changing the iOS simulator version you are trying to run.

Maybe the problem lies with that specific version of iOS simulator eg. iOS 11.x iPhone 6. Change that and it may run OK.

  • If you do not have desired version with you, go to XCode->Preferences->Components, and download one of the older iOS simulators available at the time of XCode 9.x.
  • Then, go to XCode->Windows->Devices and Simulators. Press + sign at the bottom left of the screen. Add your desired simulator version (give your desired name), so that this newer simulator appears in runnable scheme list of XCode.

This is just for the users that failed trying everything to save Xcode 10 and then reinstalled Xcode 9.4.1 and the simulator still not working.

Here is what I did to give Xcode 9.4.1 back running. After I got this problem after upgraded to Xcode 10. I tried that famous FramebufferRendererHint, didn't work for me. I have found out the Xcode 10.1 beta release didn't fix the problem for someone else, so I didn't bother to try 10.1 beta.

From the online research I know the problem is in /Library/Developer/PrivateFrameworks/CoreSimulator.framework. Without Xcode even installed on your Mac /Library/Developer doesn't exist. So it is installed by Xcode when your first time run Xcode. You would notice a screen showing "Installing Components" But after you installed Xcode 10 and then install/run Xcode 9.4.1 it won't touch that folder anymore. So problem stays even you put Xcode 9.4.1 back

That's why after I downloaded Xcode 9.4.1 expanded and ran it. Problem still there.

I didn't backup my Mac. So I decided to start from scratch. Restored my MacBook from Internet, downloaded Xcode 9.4.1 again. and now everything is back to normal. I can keep releasing the App to App Store now.

In my case, I just left the computer for 10 minutes or so (out of frustration!) and when I came back I found it at the starting screen! .... I guess for the first time it takes time

In my case (xcode 10), I just left the computer for 10 minutes or so (out of frustration!) and when I came back I found it at the starting screen! .... I guess for the first time it takes time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!