Xcode Scheme (Apple Document) 什么是Xcode 中的Scheme

来源:互联网 发布:淘宝粉笔公考680盗版的 编辑:程序博客网 时间:2024/04/30 02:19


Apple 官方地址:

http://developer.apple.com/library/mac/#featuredarticles/XcodeConcepts/Concept-Schemes.html

一个写的很详细的个人博客,英文

http://pilky.me/view/17

Xcode Scheme

An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.

You can have as many schemes as you want, but only one can be active at a time. You can specify whether a scheme should be stored in a project—in which case it’s available in every workspace that includes that project, or in the workspace—in which case it’s available only in that workspace. When you select an active scheme, you also select a run destination (that is, the architecture of the hardware for which the products are built).


Xcode scheme 定义了编译集合中的若干target,编译时的一些设置以及要执行的测试集合。

你可以自定义若干个scheme,但是同一时刻只能运行一个.你可以定义scheme是保存于一个工程中,也就是scheme是否针对所有包含那个工程的工作区,否者就只是针对此工作区(ps:我理解为,scheme是否和工程绑定,若干绑定,则此scheme是伴随此产品的,无论工作区变换与否)。当你选中一个运行的scheme时,你也可以选中一个执行目标,也就是此产品会被哪一个硬件编译运行。

原创粉丝点击