*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-tabBarController must return an instance of a UITabBarController subclass. <MMTabViewController: 0x7fb601727d40> returned <ESTabBarController: 0x7fb60688da00>, which is not a kind of UITabBarController.' terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone 13 (FF523057-CBC8-4BD0-8315-6F674C6EB86B) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13

It was working fine till iOS 15. Issue sttarted when i run my project on iOS 15.2.

2

There are 2 answers

0
Ansu Vachhani On
 [self customizeTabBarForController:_tabBarController];
[self.view addSubview:_tabBarController.view];
[_tabBarController didMoveToParentViewController:self];

use this in tabbarviewcontroller

3
David Prusa On

It is hard to tell from question but ESTabBarController is this library https://github.com/eggswift/ESTabBarController ?

Probably this library has a problem with the new iOS or you updated that library with pod install and now something is broken inside it.