Xcode 12: iOS 14 Widget all black in simulator. How to fix?

怎甘沉沦 提交于 2020-12-13 04:41:42

问题


I want to add some iOS 14 widgets to my existing iOS app. When testing the widget in simulator it frequently happen, that the widget is not displayed correctly but is all black. Both in the widget selection dialog and in the actual widget that is shown on the homescreen.

Re-running the app does not solve the problem. In most cases the problem goes away when deleting the app and restarting the simulator. However, in some rare cases only deleting the simulator and adding a new one solved the problem.

So far this only happened when running the app in simulator while on a real devices everthing is OK. Since the problems goes away when switching the simulator, I assume that there is nothing wrong with my code. But of course I want to be sure, that this is not a problem of the app itself before submitting and publishing the app.

Is this a known problem in Xcode 12? Am I doing something wrong? Is there a known fix?

So far I only found some posts from users who experienced this problem with other apps in early versions of iOS 14 beta. But these problems should have been fixed with later beta versions and should of course not happen any more in the final iOS 14 version.

来源:https://stackoverflow.com/questions/64205752/xcode-12-ios-14-widget-all-black-in-simulator-how-to-fix

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