Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why Xcode 7.2 crash 'Could not instantiate class named IBNSLayoutConstraint'?

Tags:

*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named IBNSLayoutConstraint'

I just update Xcode to 7.2 then i start to check is everything alright. but I have this error and it crashes. I dig this problem, everybody said that "Make sure you don't have any constraints installed for views that aren't installed." but I don't have any uninstalled constrains. and I don't have any NSLayoutConstraint outlets. Thanks a lot.

like image 366
ali Avatar asked Dec 10 '15 13:12

ali


2 Answers

Select Storyboard Disable Size class resolve my problem. Hope this will help you! Thanks After build your project you can again enable size class.

enter image description here

like image 113
Arvind Kumar Avatar answered Sep 29 '22 12:09

Arvind Kumar


In my case I had "padView" that was not installed in any/any size class and was installed in regular/regular size class, but it's subviews were installed in all size classes.

enter image description here

"PadView" settings:

enter image description here

"PadView" subviews settings:

enter image description here

When I changed "PadView" subviews installation settings to the same as "PadView" settings my problem was resolved.

enter image description here

like image 40
Evgeny Mikhaylov Avatar answered Sep 29 '22 12:09

Evgeny Mikhaylov