NSInvalidUnarchiveOperationException: 'Failed to instantiate class called _UITableViewCellSeparatorView

After updating Xcode Update (5.1), my application crashes when I try to start iOS 6.x.

I have an application in which I have a custom cell and flaws.

Auto layout is not set for xib file. The error I get is:

* Application termination due to the uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITableViewCellSeparatorView'

I found only one thread ( https://forums.xamarin.com/discussion/14691/app-crashes-after-xcode-update ) about this problem in another forum, but without a solution, just a test that I also did, and got the same error.

Help !!!

+8
ios objective-c xcode
Mar 17 '14 at 22:03
source share
3 answers

I was getting the same error after upgrading to Xcode 5.1. I was able to get rid of the error by editing xib for my custom cell. In the Interface Builder document in the file inspector, I switched View As to iOS 6.1 and earlier. I also have Builds for iOS 6.0 and later. Hope this works for you!

+17
Mar 18 '14 at 15:58
source share

I have the same problem, and "View as" and "Builds For" did not help me. I changed β€œOpens” to β€œXcode 5.0,” and it helped.

PS Do not forget to remove the application from the device / simulator, clean the project and restart xcode (not sure which path was right, I did everything)

+1
May 22 '14 at 16:14
source share

After installing Xcode 6.0.1 beta 2, I also ran into this problem.

My project has a goal of deploying iOS 6.0

Using @AlexZd's answer, I did the following:

  • I found all the xibs to be created / displayed at this point

  • Prior to my actions, these xibs had the following standard settings:

enter image description here

  1. So, for each of the xibs I selected, these settings were changed with the following settings:

enter image description here

Now check the work. If this does not work, take control actions

4. 1) Clean your project Xcode CMD + SHIFT + K, 2) Clear the folder ~ / Library / Developer / Xcode / DerivedData with your hands 3) Remove the application from the device, and then run it through Xcode on this device.

This solution was tested by me on 3 iPads with iOS6, iOS7 in iOS8. This works great on any of them!

+1
Sep 30 '14 at 10:28
source share



All Articles