简体   繁体   English

如何从Xcode 3.2为iPhone 5支持准备iOS 4.2应用程序?

[英]How to prepare iOS 4.2 app from Xcode 3.2 for iPhone 5 support?

I have this app that I wrote more than 1,5 year ago. 我有这个应用程序,我写了超过1。5年前。 It was my first project in iOS, so I was working on wht was given to me - in this case it was Xcode 3.2 and iOS 4.2. 这是我在iOS中的第一个项目,所以我正在研究那个给我的东西 - 在这种情况下它是Xcode 3.2和iOS 4.2。 Now I want to submit this app to AppStore, but thing is that as of 1st May Apple requires developers to support new iPhone 5 screen resolution and as a result also I have to provide iPhone 5 screens for submitting proces. 现在我想将此应用程序提交给AppStore,但事实是,截至5月1日,Apple要求开发人员支持新的iPhone 5屏幕分辨率,因此我还必须提供iPhone 5屏幕来提交过程。

Any advice how to solve this situation? 有什么建议如何解决这种情况? Rewriting all classes with screen bounds or throw it away and use Xcode 4.2 or change for iOS 5.0 and develop "same" app under Xcode 4.2? 用屏幕边界重写所有类或将其丢弃并使用Xcode 4.2或更改为iOS 5.0并在Xcode 4.2下开发“相同”的应用程序? Or maybe another way? 或者另一种方式?

To anitcipate some answers, I cannot upgrade higher than Xcode 4.2, because I'm working on Snow Leopard and what's more painful I don't have iPhone 5 itself, so I'm not even able to test it myself. 为了获得一些答案,我无法升级到高于Xcode 4.2,因为我正在使用Snow Leopard而且我没有iPhone 5本身更痛苦,所以我甚至无法自己测试它。

You can not, you will need the iOS 6 SDK to support the 4" iOS device. 你不能,你将需要iOS 6 SDK来支持4“iOS设备。

Update to either Lion or Mountain Lion and then download the latest SDK and make sure that you autoresize masks are set correctly and your app will work on 3,5" and 4" device. 更新到Lion或Mountain Lion,然后下载最新的SDK,并确保自动调整掩码设置正确,您的应用程序将在3,5“和4”设备上运行。

Unfortunately, you will have to update to a newer version of XCode, which will require an update of your OS to either Lion or Mountain Lion. 不幸的是,您必须更新到更新版本的XCode,这需要将您的操作系统更新为Lion或Mountain Lion。 I tried doing this recently with an older Macbook that I had, and it became more of a headache to get it to work with the older software than switching to a new SDK. 我最近尝试使用我用过的旧版Macbook,并且使用旧版软件而不是切换到新的SDK变得更加令人头痛。

Everything should be a relatively easy update. 一切都应该是一个相对容易的更新。

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

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