Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView'

After Xcode Update (5.1) my app crashes when i try to run in iOS 6.x.

I have an app where I have a custom cell and constraints.

Auto layout is unchecked for the xib file. The error I get is:

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

I only found one thread about this issue in another forum, but without a solution, just a test that I've done too and got the same error.

like image 998
maiconpeixinho Avatar asked Mar 17 '14 22:03

maiconpeixinho


2 Answers

I was getting the same error after updating to Xcode 5.1.

I was able to get rid of the error by editing the xib for my custom cell.

Under Interface Builder Document in the file inspector, I switched "View as" to "iOS 6.1 and Earlier". I also have "Builds for" set to "iOS 6.0 and Later".

like image 68
kwatanabe Avatar answered Sep 23 '22 20:09

kwatanabe


I got same issue and "View as" and "Builds For" didn't help me. I changed "Opens in" - "Xcode 5.0" and it helped.

PS Don't forget to remove app from device/simulator, clean project and restart xcode (not sure which way was right, I did all of them)

like image 45
AlexZd Avatar answered Sep 25 '22 20:09

AlexZd