Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我snapshotView(afterScreenUpdates: false)在我的应用程序中使用默认值,它在带有 M1 芯片的 Mac Mini 上崩溃(线程 1:EXC_BAD_ACCESS(代码=1,地址=0x20)
snapshotView(afterScreenUpdates: false)
此外,我在使用drawViewHierarchyInRect所有这些图形/UI 方法时遇到了同样的崩溃。
drawViewHierarchyInRect
任何想法出了什么问题以及如何解决?
我们也遇到了这个崩溃,怀疑它与在我们的应用程序中使用金属层有关。无法找出确切的原因,但问题似乎在 macOS Monterey 中得到了解决。