'The NIB data is invalid.' foruncaught exception 'NSInternalInconsistencyException'

I faced this issue in a very special situation.  To debugging the iOS7 issue in my XCode4.6, I copied the iOS7 SDK from xcode5 application into xcode4.6.  After that, I always met this error when running my App on the IPAD1 device with iOS5.1.  The App works fine on any other iOS6 above devices.

So if I remove iOS7 SDK folder from /Application/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs, this exception will disappear.


I searched internet, most people met the issue just because "use Autolayout" was checked, but no one have the same issue with me above, so record it here for your reference.

Uncheck the "use Autolayout" highlighted in the below image. Xcode 4.5 enables this property by default for the new nib files you add into your project. Unchecking the autolayout check box solved the problem


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值