NSInvalidUnarchiveOperationException: 'Could not instantiate class named _UITableViewCellSeparatorView'

岁酱吖の 提交于 2019-12-19 05:53:38

问题


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.


回答1:


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




回答2:


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)




回答3:


After installing of Xcode 6.0.1 beta 2, I too was encountered with this problem.

My project has iOS Deployment Target is 6.0

Using answer of @AlexZd, I did next actions:

  1. I found all xibs, which will created / displayed at this moment

  2. Before my actions this xibs had next standard settings:

  1. So, for every of xibs, selected by me, this settings was changed on next settings:

Now, check work of it. If this does not works, then do control actions

4. 1) Clean your Xcode project by CMD + SHIFT + K, 2) Clean ~/Library/Developer/Xcode/DerivedData folder by hands 3) Remove app from device and then run it via Xcode on this device

This solution was checked by me on 3 iPads with IOS6, IOS7 within IOS8 too. This works perfectly on any of them!



来源:https://stackoverflow.com/questions/22466420/nsinvalidunarchiveoperationexception-could-not-instantiate-class-named-uitabl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!