问题描述
在XCode更新(5.1)之后,当我尝试在iOS 6.x中运行时,我的应用程序崩溃。
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 contraints.
取消选中xib文件的自动布局。我得到的错误是:
Auto layout is unchecked for the xib file. The error I get is:
我只找到一个线程()关于这个问题在其他论坛,但没有解决方案,只是我已经做过的测试并得到了同样的错误。
I only found one thread (https://forums.xamarin.com/discussion/14691/app-crashes-after-xcode-update) about this issue in other forum, but without solution, just a test that i've done too and got the same error.
帮助!!!
推荐答案
更新到XCode 5.1后,我遇到了同样的错误。通过编辑自定义单元格的xib,我能够摆脱错误。在文件检查器中的Interface Builder Document下,我将View as切换为iOS 6.1 and Earlier。我还将Builds for设置为iOS 6.0及更高版本。希望这对你有用!
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". Hope this works for you!
这篇关于NSInvalidUnarchiveOperationException:'无法实例化名为_UITableViewCellSeparatorView的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!