*** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“-tabBarController 必须返回 UITabBarController 子类的实例。
在 iOS 15 之前一直工作正常。当我在 iOS 15.2 上运行我的项目时,问题开始了。
[self customizeTabBarForController:_tabBarController];
[self.view addSubview:_tabBarController.view];
[_tabBarController didMoveToParentViewController:self];
在 tabbarviewcontroller 中使用它
从问题中很难看出,但是关于ESTabBarController,是这个库吗?
可能这个库在新的 iOS 上有问题,或者你使用 pod install 更新了该库,但现在里面有些东西坏了。