-
[iOS] info.plist / AppProject ์์ฑ ํ๊ตฌiOS/UMC 2022. 9. 24. 03:16
๐ก info.plist์ AppProject์ ์์ฑ์ ์์๋ณด์!
1๏ธโฃ info.plist
info.plist๋?
Information Property List์ ์ฝ์๋ก, ๋ฒ๋ค์ ์๋ณํ๊ณ ๊ตฌ์ฑํ๋ ํค-๊ฐ ์์ ํฌํจํ๋ ๋ฆฌ์์ค์ด๋ค.
*๋ฒ๋ค(Bundle)
Bundle์ ํ๋์ ์ฑ์ ๊ตฌ์ฑํ๋ ์ฌ๋ฌ ์์๋ฅผ ๋ฌถ์์ผ๋ก ๊ด๋ฆฌํ๋ ๋๋ ํฐ๋ฆฌ์ด๋ค.
iOS ํ๊ฒฝ์์๋ ์ดํ๋ฆฌ์ผ์ด์ , ํ๋ ์์ํฌ, ํ๋ฌ๊ทธ์ธ, ๊ทธ๋ฆฌ๊ณ ๋ค๋ฅธ ํ์ ์ ์ํํธ์จ์ด๋ค์ด ๋ฒ๋ค์ด๋ค.
๋ ๋์ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ๊ณตํ๊ธฐ ์ํด์ iOS, macOS๋ ๊ฐ ์ฑ๊ณผ ๋ฒ๋ค์ ํน๋ณํ ๋ฉํ๋ฐ์ดํฐ ์กด์ฌ์ ์์กดํ๋ค. ๋ช ๊ฐ๋ ์ ์ ์๊ฒ ๋ณด์ด๊ณ , ๋ช ๊ฐ๋ ์ฑ์ ๋ฐ์นญ์ ์ฉ์ดํ๊ฒ ํ๋ ์์คํ ํ๋ ์์ํฌ์ ์ฌ์ฉ๋๋ ๋ฑ ๋ค์ํ ์ฉ๋๋ก ์ฐ์ธ๋ค. ์ฑ์ด ์์คํ ์๊ฒ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์ ๊ณตํ๋ ๋ฐฉ๋ฒ์ information property list file ๋๋ info.plist ๊ฐ ์๋ค.
info.plist ํ์ผ์ ์ฑ์ ๊ตฌ์ฑํ๋ค
๋ชจ๋ ์ฑ๊ณผ ํ๋ฌ๊ทธ์ธ์ Info.plistํ์ผ์ ์ฌ์ฉํ์ฌ ์์คํ ์ด ์ฝ๊ฒ ์ก์ธ์คํ ์ ์๋ ์์น์ ๊ตฌ์ฑ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๋ค. macOS ๋ฐ iOS๋ Info.plistํ์ผ์ ์ฌ์ฉํ์ฌ ๋ฒ๋ค์ ๋ํด ํ์ํ ์์ด์ฝ, ์ฑ์ด ์ง์ํ ๋ฌธ์ ์ ํ, ๋ฐ ๋ฒ๋ค ์ธ๋ถ ์์์ ์ํฅ์ ๋ฏธ์น๋ ๋์๋ค์ ๊ฒฐ์ ํ๋ค.
info ์์ฑ ์ดํด๋ณด๊ธฐ
info.plist ์์ฑ์ ์ฌ๊ธฐ์ ํ์ธํ ์ ์๋ค [info.plist ์์ฑ ๋ชฉ๋ก]
Bundle name ์ ํ๋ฆฌ์ผ์ด์ ์ค์ ์ด๋ฆ Bundle identifier ์ ํ๋ฆฌ์ผ์ด์ ๊ณ ์ ์๋ณ์ InfoDictionary version info.plist์ ๋ฒ์ Main storyboard file base name ๋ฉ์ธ ์คํ ๋ฆฌ๋ณด๋ ํ์ผ๋ช Bundle version ๋ฒ๋ค์ ๋น๋ ๋ฒ์ Launch screen interface file base name ๋ฐ์น์คํฌ๋ฆฐ ํ์ผ ์ด๋ฆ Executable file ์คํ ํ์ผ ์ด๋ฆ Application requires iPhone environment ๋ฐ๋์ iOS ํ๊ฒฝ์์๋ง ์คํํด์ผ ํ๋์ง ์ฌ๋ถ ํ์ธ Supported interface orientations(iPhone) iOS ํ๊ฒฝ ์ธํฐํ์ด์ค ๋ฐฉํฅ Application supports indirect input events ๊ฐ์ ์ ๋ ฅ ์ง์ ์ฌ๋ถ Application Scene Manifest Scene ์๋ช ์ฃผ๊ธฐ ์ ๋ณด Bundle OS Type code ๋ฒ๋ค OS ์ข ๋ฅ ์ฝ๋ Development localization ๊ฐ๋ฐ ์ง์ญ ๋ฐ ์ธ์ด Supported interface orientations (iPad) iPad ํ๊ฒฝ ์ธํฐํ์ด์ค ๋ฐฉํฅ Bundle version string (short) ๋ฒ๋ค ๋ฆด๋ฆฌ์ฆ ๋ฒ์ ๐ ๊ณต์ ๋ฌธ์ ์ฐธ๊ณ
About Info.plist Keys and Values
About Info.plist Keys and Values To provide a better experience for users, iOS and macOS rely on the presence of special metadata in each app or bundle. This metadata is used in many different ways. Some of it is displayed to the user, some of it is used i
developer.apple.com
Apple Developer Documentation
developer.apple.com
2๏ธโฃ AppProject
App project?
ํ๋ก์ ํธ์ ๋ํ ๊ธฐ๋ณธ ๋น๋ ์ค์ ์ ์ ์ํ๋ค.
์ํํธ์จ์ด๋ฅผ ๋ง๋๋๋ฐ ํ์ํ ๋ชจ๋ ํ์ผ, ๋ฆฌ์์ค, ์ ๋ณด๋ฅผ ์ํ ์ ์ฅ์ ๊ณต๊ฐ์ด๋ค.
App project ์์ฑ ์ดํด๋ณด๊ธฐ
โ Info ํญ ์ดํด๋ณด๊ธฐ
Deployment Target
์ดํ๋ฆฌ์ผ์ด์ ์ ์ต์ OS ์ง์ ๋ฒ์ ์ ์ค์ ํด ์ค ์ ์๋ค.
๋ฒ์ ์ ์ ์จ์ ์๋ ๋งํฌ์์ ์ฐธ๊ณ ํ ๋ค์ ์ค์ ์ ํด์ฃผ๋ ๊ฒ์ด ์ข๋ค!
App Store - ์ง์ - Apple Developer
App Store ์ฌ์ฉ์๋ App Store์์ iPhone, iPad, Mac, Apple TV ๋ฐ Apple Watch์ฉ ์ฑ์ ์ฝ๊ฒ ์ฐพ๊ณ ๊ตฌ์ ํ๊ณ ๋ค์ด๋ก๋ํ ์ ์์ต๋๋ค. Apple Developer Program์ ๋ฑ๋กํ์ฌ ์ฑ์ ๋์์ธ ๋ฐ ๊ฐ๋ฐํ๊ณ App Store์ ์ฑ์ ๋ฐฐํฌ
developer.apple.com
Configurations
๋น๋๋ฅผ Debug, Release ์ค ์ด๋ค ๊ฑธ ํ ๊ฒ์ธ์ง ์ ํํ ์ ์๋ค.
Debug Release ์คํ ํ์ผ์ ๋๋ฒ๊น ์ ๋ณด ํฌํจ(AppsStore์ ๋ฐ์นญ๋๋ ํ๊ฒฝ) ์ฝ๋ ์ต์ ํ ์๋ ๋๋ฆผ ์๋ ๋น ๋ฆ Localizations
๊ตญ๊ฐ ๋ณ๋ก ์ธ์ด๋ฅผ ์ค์ ํ ์ ์๋ค. (default๊ฐ์ ์์ด)
โ Build Settings ํญ ์ดํด๋ณด๊ธฐ
build settings๋ target์ ํ๋ก๋ํธ๋ฅผ ๋ง๋ค๊ธฐ ์ํด ํ์ํ ์ ๋ณด๋ฅผ ์ ๊ณตํ๋ค. ๊ฐ task๋ ๋น๋ ํ๋ก์ธ์ค ์ค ์ํ๋๋ค(์๋ฅผ ๋ค๋ฉด Swift ์ฝ๋ ์ปดํ์ผ) ์ด๋ป๊ฒ task๊ฐ ์ํ๋๋์ง settings๋ฅผ ์ปจํธ๋กคํ๋ค.
Customized, All ์๋ธ ํญ์ ์ฐจ์ด Customized์ All์ ๋น๊ตํด๋ดค์ ๋, ๋๊ฐ์ ์์ญ์ด๋ผ๋ All์ด ๋ ์์ฑ์ด ๋ง๋ค. ๋ง ๊ทธ๋๋ก Customized ๋ ์์ฑ๋ง ๋ณด์ฌ์ฃผ๊ธฐ ๋๋ฌธ!
๊ฐ๋ณ ์์ฑ์ ํ๋ํ๋ ๊ณต๋ถํ๊ธฐ์๋ ๋~๋ฌด ์๊ฐ์ด ์ค๋ ๊ฑธ๋ฆด ๊ฒ ๊ฐ์์
ํ์์ ๋ฐ๋ผ ์ฐพ์๋ณด๊ธฐ ์ํด ์์ฑ์ ์ค๋ช ํด์ฃผ๋ ๊ณต์ ๋ฌธ์ ๋งํฌ๋ฅผ ์ฒจ๋ถํ๋ค
https://help.apple.com/xcode/mac/current/#/itcaec37c2a6
To see this page, you must enable JavaScript. Pour afficher cette page, vous devez activer JavaScript. Zur Anzeige dieser Seite mรผssen Sie JavaScript aktivieren. ใใฎใใผใธใ่กจ็คบใใใซใฏใJavaScript ใๆๅนใซใใๅฟ ่ฆใใใใพใใ
help.apple.com
โ Package Dependencies ํญ ์ดํด๋ณด๊ธฐ
Swift Package Manager (SPM)
ํ๋ก์ ํธ ๋ด swift ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ด๋ฆฌ ๋ฐ Swift ์ฝ๋์ ๋ฐฐํฌ๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ํ ๋๊ตฌ์ด๋ค.
Package Dependencies ํญ์์ (+) ๋ฒํผ์ ํตํด ์ถ๊ฐํ ์ ์๋ค.
(+) ๋ฒํผ์ ๋๋ ์ ๋ ๋์ค๋ Add Package ์ฐฝ Packages๋ฅผ ์ถ๊ฐํ์ ์ ํ์ธ ํ ์ ์๋ ๊ฒฝ๋ก
3๏ธโฃ Target
target์ด๋ ๋น๋ํ ํ๋ก๋ํธ๋ฅผ ๊ตฌ์ฒดํํ๊ณ , ํ๋ก์ ํธ๋ ์ํฌ์คํ์ด์ค ์์ ํ์ผ set์ผ๋ก๋ถํฐ ์์ฑ๋๋ ํ๋ก๋ํธ์ ์ง์์ฌํญ๋ค์ ํฌํจํ๋ค. target์ ํ๋์ ํ๋ก๋ํธ๋ฅผ ์ ์ํ๊ณ , ์ด ๊ฒ์ ์์ค ํ์ผ๊ณผ ์ด๋ฐ ํ์ผ๋ค์ ํ๋ก์ธ์ฑํ ์ ์๋ ์ง์์ฌํญ์ ๊ตฌ์ฑํ๊ณ ์๋ค.
๐ก ํ๋์ Target์ ํ๋์ ํ๋ก๋ํธ์ด๋ฉฐ, ํ ํ๋ก์ ํธ๋ ์ฌ๋ฌ ๊ฐ์ Target์ผ๋ก ์ด๋ฃจ์ด ์ง ์ ์๋ค.
Target๋ณ๋ก ๋น๋ ์ค์ ์ ๋ฌ๋ฆฌํ ์ ์๋ค.โ Generals ํญ ์ดํด๋ณด๊ธฐ
Supported Destinations
์ ํ๋ฆฌ์ผ์ด์ ์ด ์ง์ํ๋ ๋๋ฐ์ด์ค ๋ฐ ๋ฉํฐ ํ๋ซํผ ์ง์ ์ฌ๋ถ๋ฅผ ์ค์ ํ ์ ์๋ค
Minimum Deployments
OS ์ต์ ์ง์ ๋ฒ์ ์ ์ค์ ํ ์ ์๋ค
๐ Deployment Target์์ ์ค์ ํ๋ ๋ฒ์ ๊ณผ ๋ค๋ฅผ ๊ฒฝ์ฐ Targets ์ค์ ์ ๋ฐ๋ฆ ์ฃผ์!
Identify
- App Category: ์ ํ๋ฆฌ์ผ์ด์ ์นดํ ๊ณ ๋ฆฌ ์ค์
- Display Name: ํ๋ก์ ํธ ๋ช
- Build Identifier: App Store ์ฑ ๋ฐฐํฌ์ ๋ณด์ฌ์ง๋ ์ด๋ฆ
- Version: ์ ํ๋ฆฌ์ผ์ด์ ๋ฒ์
- Build : ๋์ผ ๋ฒ์ ๋ด์์ ์ ๋ฐ์ดํธ๋ฅผ ํ ๋ ์ค์ Deployment Info
Orientation: ์ฑ ์คํ ํ๋ฉด์ ๊ฐ๋ก / ์ธ๋ก๋ก ์ค์
Portrait -> ์ธ๋ก, Landscape -> ๊ฐ๋ก
App Icons and Launch Images
App Icons Source: Assets.xcassetsํ์ผ๋ก ์ด๋
Launch Screen File: ์ฑ ์คํ ์ ๋์ค๋ splash ํ๋ฉด
โ Signing & Capabilities ํญ ์ดํด๋ณด๊ธฐ
Automatically manage signing: ํ๋กํ, ์ฑ ID, ์ธ์ฆ์ ์์ฑ ๋ฐ ์ ๋ฐ์ดํธ
Team: ๊ฐ๋ฐ์ ๊ณ์ ๋ฑ๋ก
Build Identifier: ๋ฒ๋ค ID ๊ด๋ฆฌ'iOS > UMC' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[iOS] 3์ฃผ ์ฐจ ๋ฏธ์ - ํ๋ฉด ์ ํ์ ์ด์ฉํ ๋ฏธ๋ ๊ณ์ฐ๊ธฐ ๋ง๋ค๊ธฐ (0) 2022.10.08 [iOS] UMC iOS ์ธ๋ฏธ๋ 3์ฃผ ์ฐจ (1) 2022.10.05 [iOS] 2์ฃผ ์ฐจ ๋ฏธ์ - Auto layout์ ํ์ฉํด์ ํด๋ก ์ฝ๋ฉ์ ํด๋ณด์! (0) 2022.10.01 [iOS] UMC iOS ์ธ๋ฏธ๋ 2์ฃผ ์ฐจ (0) 2022.09.26 [iOS] Storyboard UIComponents / Auto layout ํ๊ตฌ (0) 2022.09.24