Xcode相关概念:Target、Project、Scheme、Workspace

     创建并编译Xcode工程时,有几个常用概念想在这里记一下。

     

     Xcode Target:

     定义:A target defines a single product; ....

     理解:输出文件,等同于VS的Target。比如你创建一个Xcode Application工程,它的默认输出必然是一个App。

    

    Xcode Project:

    定义:An Xcode project is a repository for all the files, resources, and information required to build one or more software products.

    理解:工程文件,类似于VS的 .vcxproj。

    后缀:.xcodeproj

    注意:一个Xcode Project可以设置多个Target,默认情况下Target 继承Project的编译选项,但是每个Target的编译选项也可以单独设置。

 

    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.

    理解:编译平台及类型的组合,类似于VS 的配置管理器(Configuration Manager),设置诸如:X86、X64、Debug、Release等。

 

    Xcode Workspace:

    定义:A workspace is an Xcode document that groups projects and other documents so you can work on them together.

    理解:工作流,类似于VS的 .sln。可以同时包含多个Xcode Project。    

    后缀:.xcworkspace。

 

posted @ 2018-12-10 23:34  !--!  阅读(765)  评论(0编辑  收藏  举报