'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

'The NIB data is invalid.' foruncaught exception 'NSInternalInconsistencyException'_第1张图片


你可能感兴趣的:('The NIB data is invalid.' foruncaught exception 'NSInternalInconsistencyException')