Xcode๋ฅผ ์ด์ฉํ๋ค๋ณด๋ฉด ์์ฒ๋ผ Project, Workspace, Target๋ฑ์ ์ ํ ์ ์๋๋ฐ ์ ํํ ์ง์ด๋ณด์
Target
- A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace.
- A target defines a single product → ํ๋์ ํ๊ฒ์ ํ๋์ ํ๋ก๋ํธ
- target์ด ์์ฑํ๋ ์ ํ์ด, ๋ ๋ค๋ฅธ target๊ณผ ๊ด๋ จ๋ ์ ์๋๋ฐ ์ด๊ฒฝ์ฐ Xcode๋ ์์์ ํ์ํ ์์๋๋ก product๋ฅผ build → ์๋์ผ๋ก ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋จผ์ ๋น๋ํ๊ณ ์ดํ ๊ด๊ณ๋ ํ๊ฒ ๋น๋
- ํ๋์ project์์ ์ฌ๋ฌ target๋ค์ ํด๋น proejct์ Build Setting์ ์์๋ฐ์ง๋ง target๋ณ๋ก Build Settings, Build Phases๋ฅผ overrideํ์ฌ ์ค์ ์ ๋ค๋ฅด๊ฒ ํ ์ ์๋ค.
Project
- An Xcode project is a repository for all the files, resources, and information required to build one or more software products.
- ํ๋ก์ ํธ์๋ product๋ฅผ ๋ง๋๋ ๋ฐ ์ฌ์ฉ๋๋ ๋ชจ๋ ์์๊ฐ ํฌํจ๋์ด ์์ผ๋ฉฐ, ํด๋น ์์๊ฐ์ ๊ด๊ณ๊ฐ ์ ์ง๋๋ค
- ํ๊ฒ๋ค์ ์ฝ๋์ ๋ฆฌ์์ค๋ฅผ ๊ณต์ ํ๊ฑฐ๋ ์ํธ๊ฐ์ ๋ฐ์ดํฐ๋ฅผ ์ก์์ ํ๋๋ฑ์ ๊ด๊ณ๊ฐ ํ์ฑ๋์ด ์๋๋ฐ ์ด๋ฐ ์ฐ๊ด๊ด๊ณ์ target๋ค์ Project ์์ ๊ทธ๋ฃน๋์ด ์๋ค
- ํ๋ก์ ํธ๊ฐ ํฌํจํ๊ณ ์๋ ์ ๋ณด
- References to source files
- Groups used to organize the source files in the structure navigator
- Project-level build configurations. You can specify more than one build configuration for a project; for example, you might have debug and release build settings for a project.
- Targets
- The executable environments that can be used to debug or test the program
WorkSpace
- A workspace is an Xcode document that groups projects and other documents so you can work on them together.
- A workspace can contain any number of Xcode projects, plus any other files you want to include.
- In addition to organizing all the files in each Xcode project, a workspace provides implicit and explicit relationships among the included projects and their targets.
- Pods ํ๋ก์ ํธ์ ๊ธฐ์กด ํ๋ก์ ํธ ์ฌ์ด์ ๊ด๊ณ์ฒ๋ผ ํ๋์ ํ๋ก์ ํธ๋ ๋ค๋ฅธ ํ๋ก์ ํธ์ ์ํด ์ฌ์ฉ๋์ด ์ง ์ ์๋๋ฐ ์ด๋ฐ ํ๋ก์ ํธ๊ฐ์ ๊ด๊ณ๋ฅผ ๋์ผํ ๊ณ์ธต๋ ๋ฒจ๋ก ๊ด๋ฆฌํ๋๊ฒ์ด workspace์ด๋ค.
์ฐธ๊ณ
'iOS ๐ > iOS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Notification Service Extension (0) | 2021.12.06 |
---|---|
App Extension (0) | 2021.12.06 |
APNS, Apple Push Notification Service (0) | 2021.12.06 |
Responder chain (1) (0) | 2021.12.06 |
[Objective-C] atomic vs nonatomic (0) | 2021.12.06 |