简体   繁体   English

Xcode使用xcode 4.6为iOS 5.1创建可运行的应用程序

[英]Xcode Create a working app for iOS 5.1 with xcode 4.6

i can run my app on my 6.1 iOS but can't with 5.1 i have the iOS Deployment Target set to 5.1 on both Project and Target when i run the simulation for 5.1 it works fine but when i try it on my iPhone it crash's i committed out all my code thinking that was the problem but the same thing keeps happening 我可以在6.1 iOS上运行我的应用程序,但不能在5.1 iOS上运行,当我为5.1运行模拟时,在Project和Target上都将iOS Deployment Target设置为5.1,它可以正常工作,但是当我在iPhone上尝试时,它崩溃了,提交所有我认为是问题的代码,但同一件事不断发生

XIB and auto-layout is not enabled XIB和自动布局未启用

The iPhone simulation works with no errors I tried to create a new project and have only a label and i still get the same out come iPhone模拟正常运行,我尝试创建一个新项目,并且只有一个标签,但仍然可以得到相同的结果

can some one send a link to a single view project that works with 5.1, the program could be blank i just want to compare to mine to see what is different/ wrong. 有人可以将链接发送到与5.1兼容的单视图项目吗,该程序可能为空,我只想与我进行比较以查看有什么不同/错误。

Sounds like you might be trying to use an API that is specific to iOS6 (UICollectionView or something similar). 听起来您可能正在尝试使用特定于iOS6的API(UICollectionView或类似的东西)。

You need to plug the device in and run it and see what the console indicates is the problem. 您需要插入设备并运行它,然后查看控制台指示的问题。

You have Auto Layout turned on for ViewController.xib . 您已为ViewController.xib启用了“自动布局”。 There are two ways to work around this. 有两种方法可以解决此问题。 Either disable Auto Layout on that xib: 在该xib上禁用“自动布局”:

1) Xcode 4.3 not presenting Autoresizing panel in Size Inspector 1) Xcode 4.3在Size Inspector中不显示自动调整大小面板

Or use one of many methods to enable auto layout while remaining backwards compatible: 或使用多种方法之一启用自动布局,同时保持向后兼容:

2) Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5 2) 在保持与iOS 5向下兼容的同时,在iOS 6中启用自动布局

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM