Skip to content
This repository has been 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

Open
anuranBarman opened this issue Nov 20, 2019 · 10 comments

Comments

@anuranBarman
Copy link

anuranBarman commented Nov 20, 2019

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?

@patelkeyur7279
Copy link

I have same issue please help asap.

@rkmakwana
Copy link

I was facing the same issue. I removed the pod and added the CarbonKit.xcodeproj directly in the project. This fixed the crash.

@khotbhagya13
Copy link

Please give the solution... crashing my app

@arjungupta0107
Copy link

I am also facing the same issue and crashing my app

@kiplhiteshjain
Copy link

@ermalkaleci Hi
Did you find any solution on above, it is very critical.

Thanks!

@arsadrahman
Copy link

@ermalkaleci Hey, it's not working with IOS 13 please kindly update the pod, i was trying to update into 2.3.1 but coco pod said this version is not compatible stay in the 2.2.2

Error Cocopod : [!] CocoaPods could not find compatible versions for pod "CarbonKit":
In Podfile:
CarbonKit (~> 2.3)
Error on Xcode : Assertion failure in UITraitCollection * _Nonnull _UIGetCurrentFallbackTraitCollection(void)()

Please provide the solution as soon as possible thanks for this CarbonKit

@arjungupta0107
Copy link

arjungupta0107 commented Mar 3, 2020

@arsadrahman
In this class CarbonTabSwipeNavigation.m. try to remove setting first view controller code from viewDidLoad and put it into viewWillAppear or viewDidAppear. It fixed crash for me.Because i added CarbonKit manually in my project.

@arsadrahman
Copy link

@arjungupta0107 How to add CarbonKit Manually ?

@arjungupta0107
Copy link

@arsadrahman i mean you can drop CarbonKit files directly in to your project folder. Because i did not use cococapods etc..

Pratik948 added a commit to Pratik948/CarbonKit that referenced this issue Apr 22, 2020
This commit fixes ermalkaleci#248. This is a hot fix, a proper fix needed.
ermalkaleci#248
@swetavani64
Copy link

swetavani64 commented May 25, 2020

@arjungupta0107 i have added CarbonKit manually in my project and doing the things which you have shared but still i face same error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants