iPhone iOS 2.0到iOS 4.0 SQLite的兼容性 [英] iPhone iOS 2.0 to iOS 4.0 SQLite compatibility
问题描述
我希望我的应用与iOS 2.0和iOS 3.0和iOS 4.0兼容.
I would like my app to be compatible with iOS 2.0 as with iOS 3.0 and iOS 4.0.
出于多种原因,我将使用SQLite.
I'm going to use SQLite for many reasons.
现在:SQLite应该怎么做?我是否应该仅使用iOS 2.0随附的SQLite提供的功能?
Now: what should I do with SQLite? Should I use the features available with the SQLite shipped with iOS 2.0 only?
在Xcode 3.2.3中,我可以将基本SDK设置为iOS 4.0
In Xcode 3.2.3 I'm able to set the base SDK to iOS 4.0
SDKROOT = iphoneos4.0
SDKROOT = iphoneos4.0
以及iOS 2.0的部署目标
and the deployment target to iOS 2.0
IPHONEOS_DEPLOYMENT_TARGET = 2.0
IPHONEOS_DEPLOYMENT_TARGET = 2.0
我知道不再直接支持iOS 2.x,但这并不意味着您不能向后兼容... 正如Rudiger指出的那样,开发如此向后兼容的应用程序将是一件痛苦的事情.但是您真的认为不再有iOS 2.x iPod Touch了吗?
I understand that iOS 2.x is no more directly supported, but that doesn't mean you cannot be backward compatible... As Rudiger pointed out, it will be a pain in the ass to develop an application so backward compatible. But do you really think there are no more iOS 2.x iPod Touches around?
无论如何,谢谢您提供有关libsqlite3.dylib的信息,由于在2009年10月升级中引入了外键支持,所以我对SQLite感到困惑(
Anyway, thank you for the infos about libsqlite3.dylib, I was stuck with SQLite since foreign key support has been introduced in the october 2009 upgrade (http://www.sqlite.org/changes.html), and so it will not be available in iOS 2.x and 3.x devices...right?
推荐答案
sqlite3.h中的SQLite 3版本号:
SQLite 3 version numbers from sqlite3.h:
3.4.0-iPhone OS 2.2.1
3.6.12-iPhone OS 3.0/3.1
3.6.22-iPhone OS 4.0
3.7.2-iPhone OS 4.3
3.7.7-iPhone OS 5.0
3.7.13-iPhone OS 6.0/7.0/8.0
3.8.5-iPhone OS 8.2
3.8.10.2-iPhone OS 9.0
3.4.0 - iPhone OS 2.2.1
3.6.12 - iPhone OS 3.0 / 3.1
3.6.22 - iPhone OS 4.0
3.7.2 - iPhone OS 4.3
3.7.7 - iPhone OS 5.0
3.7.13 - iPhone OS 6.0 / 7.0 / 8.0
3.8.5 - iPhone OS 8.2
3.8.10.2 - iPhone OS 9.0
这篇关于iPhone iOS 2.0到iOS 4.0 SQLite的兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!