Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

NSInternalInconsistencyException error in iOS 13.2.2 and Xcode 11.3.1 Beta #248

@anuranBarman

Description

@anuranBarman

Hi, I am using CarbonKit since long time but now after upgrading to iOS 13.2.2 it's crashing when the app is starting. The error is like below:

*** Assertion failure in UITraitCollection * _Nonnull _UIGetCurrentFallbackTraitCollection(void)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3900.12.16/_UIFallbackEnvironment.m:91
2019-11-20 15:17:41.613813+0530 MyApp[8023:2331130] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<MyApp.NodeAppsCollectionViewController: 0x108ab9d90> returned nil from -traitCollection, which is not allowed.'
*** First throw call stack:
(0x19284d80c 0x192575fa4 0x19274fc4c 0x192bd40d4 0x19654e3c4 0x196d1aa50 0x196d1a7b4 0x196328664 0x1962fc710 0x1962fc958 0x1013ddc44 0x1013df4c4 0x196298d4c 0x19629d85c 0x19629dc64 0x19622d3c8 0x19622d61c 0x103c9ea28 0x103c9a0ec 0x100f15bc8 0x100f04c24 0x100f03a04 0x100f09a74 0x100efea44 0x100f0069c 0x196298d4c 0x19629d85c 0x19620f780 0x19620fa8c 0x1962108c0 0x196211c04 0x1961f50dc 0x196d4b604 0x19929978c 0x19929f908 0x1992aa528 0x1991f2ed0 0x19921cbbc 0x19921d5b0 0x1927cac2c 0x1927c5b18 0x1927c60e4 0x1927c58a0 0x19c71d328 0x1968b6740 0x10135796c 0x192650360)
libc++abi.dylib: terminating with uncaught exception of type NSException

I have seen #241 and #242 which is same error and comments said that upgrading to CarbonKit 2.3.1 will fix this. I upgraded my pod to the said version but the issue is still persisting. How do I fix this?

Upon debugging I found that the crash is happening at the time of doing

carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: self.tabNames, delegate: self)

When the delegate is being set it is crashing. When I put break points on the implementation of the constructor it is not reaching the breakpoint at all. What can be the meaning of this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions