什么是“目标"?在Xcode中? [英] What are "targets" in Xcode?

查看:92
本文介绍了什么是“目标"?在Xcode中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用xcode时,我已经看到了很多有关目标"的内容.当我单击项目图标(在xcode 4.2中为蓝色)时,我在中间窗格中看到目标",文件名位于其下.

I have seen a lot of things about 'targets' while working with xcode. when i click on the project icon (blue, in xcode 4.2) i see 'Targets' in the middle pane with my file name under it.

那是什么意思?我可以在项目中添加更多目标"吗?如果是,那是什么意思?

What does that mean? and can I add more 'targets' to my project? If yes, what would that mean?

我有这个: http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Targets.html

但是我什么都不懂

推荐答案

目标基本上定义了您要构建的内容以及构建方式.如果您要构建多个对象,则可以添加更多目标.如果您需要从同一项目中构建多个相关的东西,通常这很有意义.

A target basically defines what it is you are building and how you are building it. You can add more targets if you would like to build more than one thing. This usually makes sense if you need to build several related things from the same project.

例如,您可能想要一个目标用于应用程序的完整付费版本,而另一个目标则用于应用程序的精简免费版本.这两个目标将包含许多相同的代码和资源,但是某些设置可能会有所不同,并且每个目标可能包含不同的文件.

For instance, you might want one target for a full, paid version of an application, and another target for a reduced, free version of an application. Both targets would include much of the same code and resources, but some of the settings would be different and you might have different files included with each.

这篇关于什么是“目标"?在Xcode中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆