Xcode 中的 Targets、Executables 和 Products 有什么区别 [英] What is the difference between Targets, Executables and Products in Xcode

查看:27
本文介绍了Xcode 中的 Targets、Executables 和 Products 有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Xcode 下的 Groups &文件面板,目标、可执行文件和产品之间有什么区别?

In Xcode under Groups & Files panel, what is the difference between Targets, Executables and Products?

推荐答案

Target:定义如何构建产品.目标将构建产品所需的文件和指令组织成一系列可以执行的构建操作.

Target: Defines how to build products. A target organizes the files and instructions needed to build a product into a sequence of build actions that can be taken.

产品:建立目标的结果.(MyAppName.app) 换句话说,生成的包.

Product: The result of building a target. (MyAppName.app) The resulting bundle, in other words.

可执行:定义运行/调试产品的环境.可执行环境定义了应该用来运行产品的程序.在许多情况下,这将是产品本身,但并非必须如此.此外,可执行环境定义了任何应该使用的命令行参数和环境变量.

Executable: Defines the environment in which to run/debug the product. An executable environment defines the program that should be used to run the product with. In many cases, this will be the product itself, but doesn't have to be. In addition, the executable environment defines any command-line arguments and environment variables which should be used.

http://developer.apple.com/tools/xcode/xcodeprojects.html

这篇关于Xcode 中的 Targets、Executables 和 Products 有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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