I have xcode 4.5 installed on my mac running mountain lion. And i have a jailbroken iphone 4 ios 5.1.1
I started a new project on xcode and add one label.
When i try to run it on simulator 6.0 there is no problem, but when i try to run it on my ios device i get this error:
#import <UIKit/UIKit
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Here is the image

A new project in Xcode 4.5 will have the deployment target set to 6.0, so you wont be able to run it on a 5.1.1 device. Change the deployment target to 5.0
Edit: from your error it looks like you are using an iOS 6 API in 5.x, which will cause a crash. NSLayoutContstraint is iOS 6.0 only. If you havent specifically set this, check that the “Use Autolayout” box is unchecked in all your xibs