Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.5: NSLayoutConstraint issue in iphone 5.1 simulator

I am getting an error:

Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason:

'Could not instantiate class named NSLayoutConstraint'

when I am trying to run my application in iPhone 5.1 simulator. It works fine on my iOS 6.0 and 5.0 Simulator and on my device too. It crashed before it runs the app, actually it crashes on the splash screen. Trying to delete the app doesn't work. It cant be deleted from the device, so I deleted it from /User/"name"/library/application support/simulator/my app. If I touch the X in the simulator it freezes. "Autolayout" is unchecked, otherwise it would not run at all. Do have anyone suggestions what to do now?

like image 337
Noah Avatar asked Nov 19 '25 06:11

Noah


1 Answers

Just disable autoLayout from FileInspector - InterfaceBuilderDocument and it will work on iOS 5 too.

like image 120
condor304 Avatar answered Nov 20 '25 21:11

condor304