简体   繁体   English

在XCode 3.1.2上为iPhone OS 3和4开发

[英]Developing for iPhone OS 3 and 4 on XCode 3.1.2

I am new to iPhone programming and have a MacBook running Leopard with XCode 3.1.2. 我是不熟悉iPhone编程的人,并且有一台运行XCode 3.1.2的豹纹MacBook。 I want to use CoreData to read and write to plists, but I read on http://tapity.com/iphone-app-development/readwrite-data-on-the-iphone-property-lists-sqlite-or-core-data/ that CoreData is only available on iPhone OS 3.0. 我想使用CoreData读写文件,但是我在http://tapity.com/iphone-app-development/readwrite-data-on-the-iphone-property-lists-sqlite-or-core-上阅读数据/ CoreData仅在iPhone OS 3.0上可用。 Right now, I am developing for iOS 2.2.1. 现在,我正在为iOS 2.2.1开发。 Is there any way I can develop for iOS 3.0 or even iOS 4.0 with Leopard or do I need to upgrade to Snow Leopard? 有什么我可以用Leopard为iOS 3.0甚至iOS 4.0开发的方法,还是需要升级到Snow Leopard?

Thanks! 谢谢!

You should upgrade. 您应该升级。 Apple approves apps only if they have been built against the latest sdk (even if the target os is a major release back). Apple仅在针对最新sdk构建应用程序时才批准它们(即使目标操作系统是主要发行版)。 So, basically, you have no choice if you plan to submit your app to the store ultimately. 因此,基本上,如果您打算最终将应用程序提交给商店,则别无选择。

Not sure if you can use the latest version of the iOS SDK with the version of XCode you have installed, but that would be an obvious solution. 不确定是否可以将最新版本的iOS SDK与已安装的XCode一起使用,但这将是一个显而易见的解决方案。 I'm sure you should be able to use at least an early version of the 3.0 SDK with XCode 3.1. 我确定您至少应该能够将3.0 SDK的早期版本与XCode 3.1一起使用。

However, I would recommend that you upgrade anyway - there are a lot of other useful features in more recent XCode updates, and Snow Leopard should give you better performance on your existing hardware anyway. 但是,无论如何,我还是建议您升级-在最新的XCode更新中还有很多其他有用的功能,而且Snow Leopard仍应在现有硬件上为您提供更好的性能。

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

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