该问题发生在 React Native iOS 项目中,并导致应用程序崩溃。
Fatal Exception: NSInternalInconsistencyException
UIViewController is missing its initial trait collection populated during initialization. This is a serious bug, likely caused by accessing properties or methods on the view controller before calling a UIViewController initializer. View controller: <CTAlertViewController: 0x107248cb0>
并且它不特定于屏幕,崩溃是随机发生的。
任何建议或回复都非常感谢。
如果其他人在 React Naive 应用程序中遇到此问题,则可能是因为您正在使用的包。在 XCode 中搜索特定的视图控制器,这将揭示你的罪魁祸首。尝试将软件包更新到最新版本。