Xcode 部署目标设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13183043/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode Deployment Target Settings
提问by Hope4You
If I want my app to be compatible with older OS versions, back to Snow Leopard, are these the proper deployment target settings in XCode?
OS X Deployment Target under "Project": 10.8
Deployment Target under "Targets": 10.6
What is the purpose of "OS X Deployment Target", if you can just use "Deployment Target"?
如果我希望我的应用程序与旧的操作系统版本兼容,回到 Snow Leopard,这些是 XCode 中正确的部署目标设置吗?
“项目”下的 OS X 部署目标:10.8
“目标”下的部署目标:10.6
如果您只能使用“部署目标”,“OS X 部署目标”的目的是什么?
回答by Mark Szymczyk
What you have would probably work, but to be safe you should set the deployment target for both the project and target to 10.6 if you want your app to be compatible with Snow Leopard.
您所拥有的可能会起作用,但为了安全起见,如果您希望您的应用与 Snow Leopard 兼容,您应该将项目和目标的部署目标都设置为 10.6。
If your project has only one target, the OS X Deployment Target setting isn't all that helpful. The OS X Deployment Target setting can help for projects with multiple targets. You could set a base deployment target for the project with the OS X Deployment Target setting and use the target's Deployment Target setting to change the deployment target for a single target.
如果您的项目只有一个目标,那么 OS X 部署目标设置就没有那么有用了。OS X 部署目标设置可以帮助具有多个目标的项目。您可以使用 OS X 部署目标设置为项目设置基本部署目标,并使用目标的部署目标设置更改单个目标的部署目标。