XCode Mac OS X 兼容性设置
我刚刚在 XCode 4 for Mac OS X 中创建了一个小程序。我希望它在 10.4、10.5 和 10.6 上运行。我怎样才能做到这一点?我目前正在运行雪豹。在 XCode 4 中,如果我单击我的项目,则会有一个部署目标设置,它是一个下拉列表,我只能选择其中之一:10.4、10.5 或 10.6。我如何确保它与所有这些兼容?谢谢。
I just created a small program in XCode 4 for Mac OS X. I want it to run on 10.4, 10.5 and 10.6. How can I do that? I am currently running Snow Leopard. In XCode 4, if I click my project, there's a settings for deployment Target, which is a drop down list and I can only select 1 of : 10.4, 10.5 or 10.6. How can I make sure it is compatible with all of them? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
部署目标是您想要兼容的最低版本。将其设置为 10.4。
由于您必须将 10.6 SDK 与 Xcode 4 结合使用,因此您有责任确保不使用 10.4 中不可用的任何 API,而无需先对其进行测试。您也无法使用 Xcode 4 构建与 PowerPC 兼容的应用程序。
The deployment target is the minimum version you want to be compatible with. Set it to 10.4.
Since you have to use the 10.6 SDK with Xcode 4, you’re responsible for making sure you don’t use any APIs that aren’t available in 10.4 without testing for them first. You also can’t build PowerPC-compatible apps with Xcode 4.
使用 10.4 构建
您还需要在 10.6 中构建它,以确保您没有使用任何已经或将被弃用的东西...警告将被弃用,错误将已经被弃用,您可能有做一些条件编译。让事情保持正常。
build with 10.4
You will also want to build it in 10.6 also to make sure that you aren't using anything that has or will become deprecated... warnings will be thing that will become deprecated, errors will already be deprecated, you may have to do some conditional compilation. to keep things straight.