使用 xcode 4 但针对 OSX Leopard (10.5) 及更高版本
我正在使用 xcode 4 开发一个以雪豹为目标的应用程序(10.6) 现在,开发已接近尾声,我被要求支持 10.5+。
我已将 Mac OS 部署目标设置为 10.5 并进行编译。 编译器 (LLVM 2.0) 和链接器似乎对更改感到满意 但我遇到了一个我从 NSWindow (isOnActiveSpace) 使用的功能,它的状态为 AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
我理解它在 10.5 中不起作用(抛出异常?),但在构建时没有发出警告。
我目前没有安装 leopard,我们的 QA 需要一些时间来为此安排一台计算机,所以根据您的经验,我下一步应该做什么?我如何检查代码并确保我使用的所有 API 对于 10.5 来说实际上都是安全的?
I was developing an application using xcode 4 to target snow leopard (10.6)
Now, nearly the end of the development, I've been asked to support 10.5+.
I have set the Mac OS deployment target to 10.5 and compiled.
The compiler (LLVM 2.0) and linker seems to be happy with the change
but I came across a feature I've used from NSWindow (isOnActiveSpace) which is states as AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
This I understand states that it won't work (throw exception?) in 10.5 but no warning were raised when building.
I currently don't have a leopard installation and it will take our QA some time to arrange a computer for that, so in your experience, what should I do next? how can I go over the code and make sure that all the APIs I've used are in fact safe for 10.5?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
MAC_OS_X_VERSION_MAX_ALLOWED
设置为1050
并查看哪些符号消失。更多信息请参见 TN2064。Set
MAC_OS_X_VERSION_MAX_ALLOWED
to1050
and see what symbols disappear. More info in TN2064.