Xcode 12.3 iOS 14.3 simulators Yellow Dock / yellow translucent issues

独自空忆成欢 提交于 2021-01-13 11:51:27

问题


Today I downloaded the release of Xcode 12.3, and I went running the iOS 14.3 simulators and it seems like there is a graphic glitch that all translucent views are yellow, dock included.

I redownloaded iOS 14.2 and those seem fine. It just seems really odd. I've submitted feedback, but I was curious if anyone else has seen this?

I'm on macOS v10.15.7 (Catalina) and am curious of if it's just Catalina or also macOS v11 (Big Sur).


回答1:


I think it is a bug related to the discrete GPU.

In addition, this bug causes the background of the on-screen keyboard to be almost RGB(0,0,0). Experienced on MBP 2017 with Catalina.

Workaround I - Using integrated GPU

  1. In the simulator, set menu FileGPU SelectionPrefer Integrated GPU to work around this bug.

  2. Restart the simulator.

This was tested on a MacBook Pro with Catalina and Big Sur. As comments suggest that it won't work on iMac.

Workaround II - Reduce transparency

In the simulated device (e.g. iPhone), SettingsAccessibilityDisplay & Text Size → turn on Reduce Transparency.

Notice that it can only reduce the previous 'solid' yellow to 'fairly light'.

I find this workaround, as the discrete GPU can be used, is more suitable for testing the UI logic than the previous solution.

This was tested on a MacBook Pro with Catalina. Might work on iMac.




回答2:


Are you using a MacBook Pro? I had the same bug.

I solved in the following ways.

  • Step 1: Unplug all cables, including the charging cable
  • Step 2: Restart the iOS simulator



回答3:


Best way around it (what I've done), is to download the 14.2 Simulator pack from within Xcode.

  1. Open Xcode->Preferences
  2. Tap Components
  3. Tap the 14.2 Simulator pack and Xcode is going to start installing it.

It's a workaround till they fix that miserable error.




回答4:


It is Xcode 12.3 bug! you can see that sometimes in the code interface builder too:

It is not critical but If you really care about it, download and use the previous Xcode from here

Nothe that you can't build for iOS 14.3 if you choose to use Xcode 12.2.

More description

Xcode always have unknown issues at the release point. Some of them are critical like this with 54K views! and some are not like this issue with about 5K views in only 13 days. My suggestion is to always have 2 Xcodes at the same time until you are sure about Xcode bugs!



来源:https://stackoverflow.com/questions/65299337/xcode-12-3-ios-14-3-simulators-yellow-dock-yellow-translucent-issues

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