目标和项目之间有什么区别? [英] what is the difference between target and project?
本文介绍了目标和项目之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里是项目和目标的图片
here are the images of the project and target
这两者之间的区别是什么?
what is the difference between this two?
为什么两个都给?
why both are given?
目标图片
An image of target..
推荐答案
- >是一组文件和常规首选项。
- 目标是文件的子集和特定首选项(覆盖项目首选项) li>
- 每个目标构建一个产品,可能是一个库,可执行文件或框架。
- 它还具有构建阶段和构建规则,您可以在其中添加依赖项,并修改复制的位置和方式。
- A project is a set of files and general preferences.
- A target is a subset of the files, and specific preferences (which override the project preferences).
- Each target builds a product, which may be a library, executable, or framework.
- Because a target builds something, it also has Build Phases and Build Rules, where you can add dependencies, and refine what gets copied where and how.
事情有两个,因为它让你从同一组文件中创建不同的产品。例如,您可以定位不同的体系结构/设备,或构建一个测试产品,对您的代码运行单元测试。
It's a good thing to have both because it lets you create different products from the same set of files. As an example, you can target different architectures/devices, or build a testing product which runs unit tests against your code.
这篇关于目标和项目之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文