Possible Duplicate:
presentViewController: crash on iOS <6 (AutoLayout)
How to use NSLayoutConstraint in iOS 6?
App failing to load
I just started working on an app in the iOS6 SDK and it runs smooth on an iOS 6 device and the iOS 6 Simulator but it doesn't work on iOS 5 or the iOS 5 Simulator. I've set my Deployment Target to: 5.0
This is the error it gives me when it tries to open but it fails...
2013-01-02 14:22:57.075 MyApp[34956:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
(0x14a5052 0xea5d0a 0x144da78 0x144d9e9 0x3327d7 0x3329af 0x3326b7 0x23336d 0xdae2c 0xdb3a9 0xdb5cb 0x3ba73 0x3bce2 0x3bea8 0x42d9a 0x2845 0x139d6 0x148a6 0x23743 0x241f8 0x17aa9 0x138ffa9 0x14791c5 0x13de022 0x13dc90a 0x13dbdb4 0x13dbccb 0x142a7 0x15a9b 0x257d 0x24a5)
terminate called throwing an exception(lldb)
How can I fix this?