建立並編譯Xcode工程時,有幾個經常使用概念想在這裏記一下。xcode
Xcode Target:ui
定義:A target defines a single product; ....spa
理解:輸出文件,等同於VS的Target。好比你建立一個Xcode Application工程,它的默認輸出必然是一個App。code
Xcode Project:orm
定義:An Xcode project is a repository for all the files, resources, and information required to build one or more software products.blog
理解:工程文件,相似於VS的 .vcxproj。繼承
後綴:.xcodeprojget
注意:一個Xcode Project能夠設置多個Target,默認狀況下Target 繼承Project的編譯選項,可是每一個Target的編譯選項也能夠單獨設置。工作流
Xcode Scheme:it
定義: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),設置諸如:X8六、X6四、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。