Search code examples
iosobjective-cxcodeios6.1xcode5.1

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.


Solution

  • 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".