致命异常:NSInternalInconsistencyException:React Native iOS

问题描述 投票:0回答:1

该问题发生在 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>

并且它不特定于屏幕,崩溃是随机发生的。

任何建议或回复都非常感谢。

ios swift react-native
1个回答
0
投票

如果其他人在 React Naive 应用程序中遇到此问题,则可能是因为您正在使用的包。在 XCode 中搜索特定的视图控制器,这将揭示你的罪魁祸首。尝试将软件包更新到最新版本。

© www.soinside.com 2019 - 2024. All rights reserved.