skip to Main Content

*** 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

Answers


  1. 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.

    Login or Signup to reply.
  2.  [self customizeTabBarForController:_tabBarController];
    [self.view addSubview:_tabBarController.view];
    [_tabBarController didMoveToParentViewController:self];
    

    use this in tabbarviewcontroller

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search