Unable to start new xcode 4.5 project even with single label on ios 5.1.1 device

I have xcode 4.5 installed on my mac running mountain lion. And I have jailbroken iphone 4 ios 5.1.1

I started a new xcode project and added one tag.

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 a picture

Image

+4
source share
1 answer

A new project in Xcode 4.5 will have a deployment target of 6.0, so you wonโ€™t 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 the iOS 6 API in 5.x, which will lead to a crash. NSLayoutContstraint - iOS 6.0 only. Unless you specifically set this, make sure the "Use autorun" checkbox is not selected in all your xibs

+3
source

Source: https://habr.com/ru/post/1435872/


All Articles