Xcode 12:iOS 14 Widget 在模拟器中全黑.怎么修? [英] Xcode 12: iOS 14 Widget all black in simulator. How to fix?

查看:71
本文介绍了Xcode 12:iOS 14 Widget 在模拟器中全黑.怎么修?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向我现有的 iOS 应用添加一些 iOS 14 小部件.在模拟器中测试小部件时,经常发生小部件显示不正确而是全黑的情况.在小部件选择对话框和主屏幕上显示的实际小部件中.

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.

这是 Xcode 12 中的已知问题吗?难道我做错了什么?有已知的修复方法吗?

到目前为止,我只找到了一些用户的帖子,这些用户在 iOS 14 测试版的早期版本中使用其他应用程序时遇到了此问题.但是这些问题应该在以后的 Beta 版本中得到修复,当然在最终的 iOS 14 版本中应该不会再发生了.

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://developer.apple.com/forums/thread/650782

Looks like a known apple issue on simulator as mentioned here https://developer.apple.com/forums/thread/650782

这篇关于Xcode 12:iOS 14 Widget 在模拟器中全黑.怎么修?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆