Mac App Store (macOS)
Flutter macOS ์ฑ์ Mac App Store ์ ์ฌ๋ฆฌ๋ ์ ์ฐจ๋ฅผ App Sandbox ยท ์ธ์ฆ์ ยท flutter build macos ยท ์๋ช ๊ณผ ํจํค์ง ยท ์ ๋ก๋ ยท ์ฌ์ฌ ์ ์ถ ์์๋ก ์๋ดํ๊ณ , Developer ID ์ง์ ๋ฐฐํฌ(๊ณต์ฆ)์์ ์ฐจ์ด๋ฅผ ์ค๋ช ํฉ๋๋ค.
This page has not been translated yet. The Korean original is shown below.
์์ง ๋ฒ์ญ๋์ง ์์์ต๋๋ค. ํ๊ตญ์ด ์๋ฌธ์ ๋ณด์ฌ ๋๋ฆฝ๋๋ค.
On this page
Flutter macOS ์ฑ์ Mac App Store ๋ก ๋ด๋ ์ ์ฐจ์
๋๋ค. Apple ๊ณ์ ํ๋๋ก App Store ์ Mac App Store ์ ๋ชจ๋ ์ฌ๋ฆด ์ ์๊ณ , ์คํ ์ด ๋ฑ๋ก์ ๋ณด ยท ์ฑ์ด ์์งํ๋ ๊ฐ์ธ์ ๋ณด ยท ์์ถ ๊ท์ ยท ์ฐ๋ น ๋ฑ๊ธ ยท ์ฌ์ฌ ์ ์ถ ยท ์ถ์ ๋ฐฉ์์ App Store (iOS ยท iPadOS) ํธ์ 10~14๋จ๊ณ์ ๊ฐ์ต๋๋ค. ์ด ํ์ด์ง๋ Mac ์์ ๋ฌ๋ผ์ง๋ ๋ถ๋ถ โ App Sandbox, ์ธ์ฆ์, ํ๋ก๋น์ ๋ ํ๋กํ, .pkg ํจํค์ง, ์
๋ก๋ โ ์ ์ง์คํฉ๋๋ค.
์ฐธ๊ณ
Cocode IDE ๋ก ๋ง๋ ํ๋ก์ ํธ๋ Flutter ํ๋ก์ ํธ๋ผ ๊ฐ์ ์ ์ฐจ๋ฅผ ๋ฐ๋ฆ
๋๋ค. ๋ค๋ง ํ๋ก์ ํธ์ macos/ ํด๋๊ฐ ์๋์ง, ์๋ช
๊ณผ ๋ฒ์ ์ค์ ์ CI ๊ฐ ๋์ ํ๋์ง๋ ํ๋ก์ ํธ๋ง๋ค ๋ค๋ฅผ ์ ์์ผ๋ ํ๋ก์ ํธ์ README ์ CI ์ค์ ์ ํ์ธํ์ธ์.
์ฃผ์
์ ๋ก๋ ์๊ฑด ยท ์ธ์ฆ์ ์ด๋ฆ ยท ์ฝ์ ๋ฉ๋ด ์ด๋ฆ์ Apple ์ด ๋ฐ๊ฟ ์ ์์ต๋๋ค. ์ด ํ์ด์ง์ ์์น๋ ใ๋ง์ง๋ง ํ์ธใ ๋ ์ง ๊ธฐ์ค์ด๊ณ , ๋ค๋ฅด๋ฉด Apple ์ ๊ณต์ ๋ฌธ์๊ฐ ์ฐ์ ํฉ๋๋ค. App Store Connect ํ๋ฉด์ ๋ก๊ทธ์ธ์ด ํ์ํด ์ง์ ํ์ธํ์ง ๋ชปํ์ผ๋ฏ๋ก, ๋ฉ๋ด์ ๋ฒํผ ์ด๋ฆ ยท ๊ฐ ๋จ๊ณ์ ์ฑ๊ณต ํ์ (ํ๋ฉด์ ๋ณด์ด๋ ์ํ)์ Apple ๋์๋ง์ ์ค๋ช ์ ๋ฐ๋์ต๋๋ค. ์ด๋ฆ์ ํ์ธํ ๋ฒ์์์ ํ๊ตญ์ดํ ๋์๋ง์ ํ๊ธฐ๋ฅผ ใํ๊ธ(์๋ฌธ)ใ์ผ๋ก ์ ์๊ณ , ํ์ธํ์ง ๋ชปํ ์ด๋ฆ์ ์๋ฌธ์ผ๋ก ์ ์์ต๋๋ค(์ญํ ์ด๋ฆ์ ์๋ฌธ์ผ๋ก ํต์ผํ์ต๋๋ค).
์ค๋น๋ฌผ
- ๋๋ธ ๊ณตํต ์ค๋น โ ๊ฐ๋ฐ์ ๊ณ์ , ์๋ณ์์ ๋ฒ์ , ์์ด์ฝ ยท ์คํ๋์ ยท ์คํฌ๋ฆฐ์ท(Mac ์คํฌ๋ฆฐ์ท์ 16:10 ๋น์จ์ ๊ท๊ฒฉ ํฌ๊ธฐ), ๊ฐ์ธ์ ๋ณด์ ๊ถํ.
- Mac ๊ณผ Xcode โ Flutter 3.47 ์ด ์ง์ํ๋ macOS ๋ Monterey(12) ์ด์์ ๋๋ค(์ง์ ํ๋ซํผ ํ). Apple ์ ์ ๋ก๋ ์๊ฑด ํ๋ iOS ์ฑ๊ณผ macOS ์ฑ์ Xcode ์๊ฑด์ ๋ฐ๋ก ์ ์ต๋๋ค(macOS ์ฑ์ ใXcode 6 or laterใ). 2026-04-28 ๋ถํฐ์ Xcode 26 ์๊ฑด ๋ฌธ์ฅ์๋ macOS ๊ฐ ๋์ด๋์ง ์์ต๋๋ค(2026-10-09 ํ์ธ).
- Mac ์์ ์ํ โ ๋ฆด๋ฆฌ์ค
.app์ ์ง์ ์คํํด ๋คํธ์ํฌ ยท ํ์ผ ์ ๊ทผ์ด ์๋๋ฐ์ค ์์์ ๋๋์ง ํ์ธํฉ๋๋ค(์ ์ถ ์ ์ฒดํฌ๋ฆฌ์คํธ). - (์ง์ ์๋ช ํ ๋) ์ธ์ฆ์์ ํ๋กํ โ ์๋ 3๋จ๊ณ๋ฅผ ๋ณด์ธ์. Apple ๋์๋ง์ ใํ์ํ ์ญํ ใ ๊ธฐ์ค์ผ๋ก ๋ฐฐํฌ ์ธ์ฆ์๋ Account Holder ๋๋ Admin ์ด ๋ง๋ญ๋๋ค.
Developer ID ์ง์ ๋ฐฐํฌ์์ ์ฐจ์ด
Mac ์ฑ์ Mac App Store ๋ก ๋ด๊ฑฐ๋, Developer ID ๋ก ์๋ช ํด ์คํ ์ด ๋ฐ(์น์ฌ์ดํธ ๋ฑ)์์ ์ง์ ๋ฐฐํฌํ ์ ์์ต๋๋ค. Flutter ๋ฌธ์๋ ๋ ๊ฒฝ๋ก๋ฅผ ๋ชจ๋ ์๋ดํ๋ฉฐ, ์ด ๊ฐ์ด๋๋ Mac App Store ๊ฒฝ๋ก์ ๋๋ค. ๋์ ์ฐจ์ด๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
| ํญ๋ชฉ | Mac App Store (์ด ๊ฐ์ด๋) | Developer ID ์ง์ ๋ฐฐํฌ |
|---|---|---|
| ๋ฐฐํฌ์ ์ ๋ฐ์ดํธ | Apple ์ด ํธ์คํ ํ๊ณ ์ ๋ฐ์ดํธ๋ Mac App Store ๋ก๋ง ๋ฐฐํฌํด์ผ ํฉ๋๋ค(์ฌ์ฌ ์ง์นจ 2.4.5(vii)) | ๊ฐ๋ฐ์๊ฐ ์ง์ ๊ด๋ฆฌํฉ๋๋ค |
| App Sandbox(์๋๋ฐ์ค) | ํ์(Required) | ๊ถ์ฅ(Recommended). ๊ณต์ฆ์๋ Hardened Runtime ์ด ํ์์ด๊ณ ์๋๋ฐ์ค๋ ์ ํ์ ๋๋ค |
| ์๋ช ์ธ์ฆ์ | ์ฑ์ ใApple ๋ฐฐํฌ(Apple Distribution)ใ(์ธ์ฆ์ ๋ชฉ๋ก์๋ ใMac ์ฑ ๋ฐฐํฌ(Mac App Distribution)ใ๋ ์์), ์ค์น ํจํค์ง๋ ใMac ์ค์น ํ๋ก๊ทธ๋จ ๋ฐฐํฌ(Mac Installer Distribution)ใ | ์ฑ์ ใDeveloper ID ์ ํ๋ฆฌ์ผ์ด์ (Developer ID Application)ใ, ์ค์น ํจํค์ง๋ ใDeveloper ID ์ค์น ํ๋ก๊ทธ๋จ(Developer ID Installer)ใ |
| ๊ฒํ | App Review ์ฌ์ฌ | ๊ณต์ฆ(notarization) โ ์ ์ฑ ์ฝํ ์ธ ์ ์๋ช ๋ฌธ์ ๋ฅผ ์๋ ๊ฒ์ฌํ๋ฉฐ App Review ๊ฐ ์๋๋๋ค |
| ๊ณต์ฆ | ํ์ ์์ต๋๋ค. ์คํ ์ด ์ ์ถ ๊ณผ์ ์ ๋๋ฑํ ๋ณด์ ์ ๊ฒ์ด ์์ต๋๋ค | ํ์ํฉ๋๋ค(macOS 10.15 ๋ถํฐ 2019-06-01 ์ดํ ๋น๋). xcrun notarytool submit ์ผ๋ก ์ฌ๋ฆฌ๊ณ , ๋๋๋ฉด ํฐ์ผ์ stapler ๋ก ํ์ผ์ ๋ถ์
๋๋ค |
| ์ฑ ๋ด ๊ตฌ์ ยท Game Center | ์ฌ์ฉํ ์ ์์ต๋๋ค | ์ฌ์ฉํ ์ ์์ต๋๋ค |
| Xcode Organizer ์ ๋ฐฐํฌ ๋ฐฉ์ | TestFlight & App Store, ๋๋ Custom โ App Store Connect | Direct Distribution, ๋๋ Custom โ Developer ID |
์ฐธ๊ณ
๋ ๊ฒฝ๋ก๋ฅผ ํจ๊ป ๋ผ ๋, codesign ์ด ์ ์ฉํ๋ ๊ธฐ๋ณธ designated requirement ๋ก ์๋ช
ํ ๋ ๋ณํ(๋ฐฉ๋ฒ B)์ ๊ฐ์ธ์ ๋ณด ๋ณดํธ ๋ฆฌ์์ค(๋ง์ดํฌ ๋ฑ) ์ ๊ทผ ๊ถํ์ ์๋ก ๊ณต์ ํ์ง ๋ชปํฉ๋๋ค. Xcode ๋ ์๋ก ํธํ๋๋ designated requirement ๋ก ์๋ช
ํด ์ด ํ๊ณ๋ฅผ ํผํฉ๋๋ค. ์ง์ ์๋ช
ํ๋ฉด์ ๊ณต์ ํ๋ ค๋ฉด TN3127 ์ ๋ฐฉ๋ฒ์ ๋ฐ๋ฅด์ธ์.
ํ๋ก์ ํธ์์ ๋ฐ๊ฟ ํญ๋ชฉ
์๋ ํ์ผ ์์น์ ๊ธฐ๋ณธ๊ฐ์ flutter create ๋ก ๋ง๋ Flutter 3.47.6 ๊ธฐ๋ณธ ํ๋ก์ ํธ์์ ํ์ธํ ๊ฒ์
๋๋ค(2026-10-09). ํ๋ก์ ํธ๋ง๋ค ๋ค๋ฅผ ์ ์์ผ๋ ์ง์ ์ด์ด ํ์ธํ์ธ์.
| ํญ๋ชฉ | ์ด๋์ ๋ฐ๊พธ๋ | ๊ธฐ๋ณธ๊ฐ๊ณผ ๋ฉ๋ชจ |
|---|---|---|
| ์ฑ ์ด๋ฆ | macos/Runner/Configs/AppInfo.xcconfig ์ PRODUCT_NAME |
๊ธฐ๋ณธ์ ํ๋ก์ ํธ ์ด๋ฆ์ด๋ฉฐ .app ํ์ผ ์ด๋ฆ๊ณผ ๊ธฐ๋ณธ ์ฐฝ ์ ๋ชฉ์ด ๋ฉ๋๋ค. App Store Connect ์ ์ฑ ใ์ด๋ฆใ๊ณผ๋ ๋ฐ๋ก ์
๋ ฅํฉ๋๋ค |
| ๋ฒ๋ค ID | ๊ฐ์ ํ์ผ์ PRODUCT_BUNDLE_IDENTIFIER |
๊ธฐ๋ณธ์ com.example.<ํ๋ก์ ํธ ์ด๋ฆ์ lowerCamelCase ๋ก ๋ฐ๊พผ ๊ฐ> ์
๋๋ค(์: my_app โ com.example.myApp). App Store Connect ์ ์ฒซ ๋น๋๋ฅผ ์ฌ๋ฆฐ ๋ค์๋ ๋ฒ๋ค ID ๋ฅผ ๋ฐ๊ฟ ์ ์์ผ๋ ์ฌ๋ฆฌ๊ธฐ ์ ์ ์ ํ์ธ์. iOS ์ฑ๊ณผ ํ ์ฑ์ผ๋ก ํ๋งคํ๋ ค๋ฉด ios/ ์ ๊ฐ์ ๋ฒ๋ค ID ๋ฅผ ์๋๋ค |
| ์ ์๊ถ | ๊ฐ์ ํ์ผ์ PRODUCT_COPYRIGHT |
Info.plist ์ NSHumanReadableCopyright ๊ฐ ๋ฐ์ ์๋๋ค. macOS ์ฑ์ ์
๋ก๋ ์ ์ ์ด ํค๋ฅผ ์ค์ ํด์ผ ํ๊ณ , ๊ธฐ๋ณธ๊ฐ์ com.example ์ด ๋ค์ด๊ฐ ์๋ฆฌํ์์์
๋๋ค |
| ์ฑ ์นดํ ๊ณ ๋ฆฌ | Xcode ์์ Runner ํ๊น โ General โ Identity โ App Category | ๊ธฐ๋ณธ Info.plist ์๋ ์์ต๋๋ค. Flutter ๋ฌธ์๋ ใnoneใ์ผ ์ ์๋ค๊ณ ํ๊ณ , App Store Connect ์ ๊ธฐ๋ณธ ์นดํ
๊ณ ๋ฆฌ์ ๊ฐ๊ฑฐ๋ ๊ฐ๊น์ด ๊ฒ์ผ๋ก ๊ณ ๋ฆ
๋๋ค. Xcode ๋ฅผ ์ด ์ ์๋ CI ๋ผ๋ฉด macos/Runner/Info.plist ์ LSApplicationCategoryType ํค๋ฅผ ์ง์ ๋ฃ์ต๋๋ค |
| ๋ฒ์ ยท ๋น๋ ๋ฒํธ | pubspec.yaml ์ version: |
Mac ์ฑ์ ๋น๋ ๋ฒํธ๋ ์ฑ์ ๋ชจ๋ ๋ฒ์ ์ ๊ฑธ์ณ ๊ณ์ ์ฌ๋ผ๊ฐ์ผ ํฉ๋๋ค. ์๋ณ์์ ๋ฒ์ |
| ์ต์ macOS ๋ฒ์ | Runner ํ๊น โ General โ Deployment Info (ํ๋ก์ ํธ ํ์ผ์์๋ MACOSX_DEPLOYMENT_TARGET) |
๊ธฐ๋ณธ์ 12.0 ์ด๊ณ Info.plist ์ LSMinimumSystemVersion ์ด ๋ฐ์ ์๋๋ค |
| ์๋๋ฐ์ค ยท entitlements | macos/Runner/Release.entitlements(๋ฆด๋ฆฌ์ค) ยท macos/Runner/DebugProfile.entitlements(๋๋ฒ๊ทธ ยท ํ๋กํ์ผ) |
๊ธฐ๋ณธ ๋ฆด๋ฆฌ์ค ํ์ผ์๋ com.apple.security.app-sandbox ๋ง ์๊ณ , ๊ธฐ๋ณธ DebugProfile.entitlements ์๋ app-sandbox ยท cs.allow-jit ยท network.server ๋ง ์์ต๋๋ค. ๋คํธ์ํฌ ์์ฒญ์ ํ๋ฉด ๋ ํ์ผ์ com.apple.security.network.client ๋ฅผ ๋๊ฐ์ด ๋ํด์ผ ํฉ๋๋ค |
| ๊ถํ ์ฌ์ ๋ฌธ๊ตฌ | macos/Runner/Info.plist ์ NSโฆUsageDescription ํค |
๊ธฐ๋ณธ ํ
ํ๋ฆฟ์๋ ์์ต๋๋ค. ์นด๋ฉ๋ผ ยท ๋ง์ดํฌ์ฒ๋ผ ๋ณดํธ๋ ๋ฆฌ์์ค๋ ์ฌ์ ๋ฌธ๊ตฌ์ ์๋๋ฐ์ค entitlement ๊ฐ ๋ชจ๋ ํ์ํ๊ณ , ์ฌ์ฉ์๊ฐ ๋ํ ์์๋ก ๊ณ ๋ฅด๋ ํ์ผ์ files.user-selected.* entitlement ๋ฅผ ์๋๋ค. ๊ฐ์ธ์ ๋ณด์ ๊ถํ |
| ์๋ช ยท ํ | Runner ํ๊น โ Signing & Capabilities โ Automatically manage signing ยท Team | ๊ธฐ๋ณธ์ ์๋ ์๋ช ์ ๋๋ค |
| ์์ถ ๊ท์ ํค | macos/Runner/Info.plist ์ ITSAppUsesNonExemptEncryption |
๊ธฐ๋ณธ ํ ํ๋ฆฟ์๋ ์์ต๋๋ค. ์ฑ์ด ์ํธํ๋ฅผ ์ฐ์ง ์๊ฑฐ๋ ๋ฉด์ ๋๋ ์ํธํ๋ง ์ธ ๋์ ์ค์ ์ iOS ํธ 11๋จ๊ณ๋ฅผ ๋ณด์ธ์ |
| ์์ด์ฝ | macos/Runner/Assets.xcassets ์ AppIcon |
์์ด์ฝ ยท ์คํ๋์ ยท ์คํฌ๋ฆฐ์ท |
๋จ๊ณ
์ฑ ๋ฑ๋ก๊ณผ ์๋ช ์ค๋น
-
์ฑ ๋ ์ฝ๋๋ฅผ ์ ํฉ๋๋ค. ๊ณ์ฝ ์ํ ํ์ธ ยท ๋ฒ๋ค ID ๋ฑ๋ก ยท ์ฑ ๋ ์ฝ๋ ๋ง๋ค๊ธฐ๋ App Store (iOS ยท iPadOS) ํธ์ 1~3๋จ๊ณ์ ๊ฐ๊ณ , ํ๋ซํผ์ผ๋ก macOS ๋ฅผ ๊ณ ๋ฆ ๋๋ค. iOS ์ฑ๊ณผ ํ ๋ฒ์ ๊ตฌ์ ์ผ๋ก ํจ๊ป ํ์ง์ ๋ฐ๋ผ ๋ ์ค ํ๋๋ฅผ ๊ณ ๋ฆ ๋๋ค.
- iOS ์ฑ๊ณผ ํ ์ฑ์ผ๋ก ํ๋งค(์ ๋๋ฒ์ค ๊ตฌ์
) โ ๊ธฐ์กด iOS ์ฑ ๋ ์ฝ๋์ ์ฌ์ด๋๋ฐ์์ ใํ๋ซํผ ์ถ๊ฐ(Add Platform)ใ๋ก macOS ๋ฅผ ๋ํฉ๋๋ค. Xcode 11.4 ๋ถํฐ๋ ํ App ID ๋ก iOS ยท macOS ์ฑ์ ๋ชจ๋ ๋น๋ํ ์ ์์ต๋๋ค. macOS ์ฑ์ ๊ฐ์ Apple ID ยท SKU ยท ๋ฒ๋ค ID ๋ฅผ ์ฐ๊ณ ,
macos/์ ๋ฒ๋ค ID ๋ฅผ iOS ์ ๊ฐ๊ฒ ๋ง์ถฅ๋๋ค. ๋ฒ์ ๋ฒํธ์ ๋น๋ ๋ฒํธ๋ iOS ์ ๋ฌ๋ผ๋ ๋ฉ๋๋ค. ํ๋ซํผ์ ์ถ๊ฐํ๋ฉด ๊ธฐ์กด ํ๋ซํผ ๋ฒ์ ์ ๋ฉํ๋ฐ์ดํฐ๊ฐ ์ ํ๋ซํผ ๋ฒ์ ์ผ๋ก ์ฎ๊ฒจ์ง์ง๋ง ํ๋ณด์ฉ ํ ์คํธ ยท ์ค๋ช ยท ์คํฌ๋ฆฐ์ท์ ์ฎ๊ฒจ์ง์ง ์์ต๋๋ค. ์์ง ์ฑ ๋ ์ฝ๋๊ฐ ์๋ค๋ฉด ใ์ ๊ท ์ฑใ ๋ํ์ฐฝ์์ iOS ์ macOS ๋ฅผ ํจ๊ป ์ ํํด ํ ๋ ์ฝ๋๋ก ๋ง๋ค ์๋ ์์ต๋๋ค. - macOS ๋ง ์ ์ฑ ๋ ์ฝ๋ โ iOS ํธ 3๋จ๊ณ์ฒ๋ผ ใ์ ๊ท ์ฑใ์์ macOS ๋ฅผ ๊ณ ๋ฆ ๋๋ค.
์ฃผ์
Apple ์ ํ๋ซํผ๋ณ๋ก ๋ฐ๋ก ๋ง๋ ์ฑ ๋ ์ฝ๋๋ ํฉ์น ์ ์๋ค๊ณ ์๋ดํฉ๋๋ค. ๋ App Review ๊ฐ ๋ ํ๋ซํผ ๋ฒ์ ์ ์น์ธํ๋ฉด ์ ๋๋ฒ์ค ๊ตฌ์ ์ด ๋๊ณ , ๊ทธ ๋ค์๋ ์ฑ ๋ ์ฝ๋์์ ํ๋ซํผ ๋ฒ์ ํ๋๋ง ๋บ ์ ์์ต๋๋ค. ๋ ์ฝ๋๋ฅผ ๋ง๋ค๊ธฐ ์ ์ ์ ํ์ธ์.
์ฑ๊ณต ํ์ โ ์ฑ ๋ ์ฝ๋์์ macOS ๋ฒ์ ํ์ด์ง๋ฅผ ์ด ์ ์์ต๋๋ค.
- iOS ์ฑ๊ณผ ํ ์ฑ์ผ๋ก ํ๋งค(์ ๋๋ฒ์ค ๊ตฌ์
) โ ๊ธฐ์กด iOS ์ฑ ๋ ์ฝ๋์ ์ฌ์ด๋๋ฐ์์ ใํ๋ซํผ ์ถ๊ฐ(Add Platform)ใ๋ก macOS ๋ฅผ ๋ํฉ๋๋ค. Xcode 11.4 ๋ถํฐ๋ ํ App ID ๋ก iOS ยท macOS ์ฑ์ ๋ชจ๋ ๋น๋ํ ์ ์์ต๋๋ค. macOS ์ฑ์ ๊ฐ์ Apple ID ยท SKU ยท ๋ฒ๋ค ID ๋ฅผ ์ฐ๊ณ ,
-
์๋๋ฐ์ค์ entitlements ๋ฅผ ๋ง์ถฅ๋๋ค. Mac App Store ๋ก ๋ด๋ ค๋ฉด App Sandbox ๋ฅผ ์ผ์ผ ํ๊ณ (์ฌ์ฌ ์ง์นจ 2.4.5(i)), Flutter macOS ๋น๋๋ ๊ธฐ๋ณธ์ผ๋ก ์๋๋ฐ์ค๊ฐ ์ ์ฉ๋ฉ๋๋ค. ์๋๋ฐ์ค ์ฑ์ ๋คํธ์ํฌ ยท ์นด๋ฉ๋ผ ยท ํ์ผ ์ ๊ทผ ๊ฐ์ ๊ถํ์ entitlement ๋ก ๋ฐํ์ผ ํ๋ฉฐ, ๋ฐํ์ง ์์ผ๋ฉด ์์คํ ์ด ๋ฐํ์์ ๋ง์ต๋๋ค. ๊ทธ๋์
macos/Runner/Release.entitlements์macos/Runner/DebugProfile.entitlements๋ ํ์ผ์ ์ฑ์ด ์ฐ๋ ๊ถํ์ ๋๊ฐ์ด ๋ํฉ๋๋ค. Flutter ๋ฌธ์๋ ํน๋ณํ ์ด์ ๊ฐ ์์ผ๋ฉด ๋ ํ์ผ์ ๋๊ฐ์ด ๊ณ ์น๋ผ๊ณ ํ๋ฉฐ, ๊ธฐ๋ณธDebugProfile.entitlements์๋network.client๊ฐ ์์ด ๋๋ฒ๊ทธ ์คํ์์๋ ๋คํธ์ํฌ ์์ฒญ์ด ๋งํ๋๋ค(Flutter 3.47.6 ์์ ํ์ธ).<key>com.apple.security.network.client</key> <true/>com.apple.security.network.client๋ ๋ฐ์ผ๋ก ๋๊ฐ๋ ๋คํธ์ํฌ ์ฐ๊ฒฐ์ ์ด์ด ์ฃผ๋ฉฐ, Flutter ๋ฌธ์๋ ๋คํธ์ํฌ ์์ฒญ์ ํ๋ ์ฑ์ด๋ผ๋ฉด ๋ฐ๋์ ๋ํ๋ผ๊ณ ํฉ๋๋ค. ํ์ผ ์ ํ๊ธฐ(file_selector)๋ฅผ ์ฐ๋ฉดcom.apple.security.files.user-selected.read-only๋read-write๊ฐ ํ์ํฉ๋๋ค. ๋ค์ด์ค๋ ์ฐ๊ฒฐ์ ๋ฐ์์ผ ํ๋ฉดcom.apple.security.network.server๋ฅผ ๋ฆด๋ฆฌ์ค ํ์ผ์๋ ๋ํฉ๋๋ค(๊ธฐ๋ณธ์ ๋๋ฒ๊ทธ ยท ํ๋กํ์ผ์๋ง ์ผ์ ธ ์์ต๋๋ค). ํ์ผ์ ๊ณ ์น ๋๋ Xcode ์ capabilities ํ๋ฉด ๋์ ํ์ผ์ ์ง์ ํธ์งํ๋ผ๊ณ Flutter ๋ฌธ์๊ฐ ๊ถํฉ๋๋ค. ์๋๋ฐ์ค์ ์์ ์์ธ(temporary exception) entitlement ๋ฅผ ์ฐ๋ ์ฑ์ ๊ทธ entitlement ๋ง๋ค ์ ๋ณด๋ฅผ Apple ์ ์ ๊ณตํด์ผ ํฉ๋๋ค(Apple ๋์๋ง ใApp Sandbox ์ ๋ณดใ). ์ฑ๊ณต ํ์ ์ ๋ฆด๋ฆฌ์ค ๋น๋๋ก ๋ง๋ ์ฑ์์ ๋คํธ์ํฌ ์์ฒญ๊ณผ ํ์ผ ์ด๊ธฐ๊ฐ ๋์ํ๋ ๊ฒ์ ๋๋ค. -
์๋ช ์ ์ ํฉ๋๋ค. Xcode ๋ก ์ฌ๋ฆฐ๋ค๋ฉด(์๋ ๋ฐฉ๋ฒ A)
open macos/Runner.xcworkspace๋ก Runner ํ๊น์ Signing & Capabilities ์์ Automatically manage signing ์ ์ผ๊ณ Team ์ ๊ณ ๋ฅด๋ฉด ๋ฉ๋๋ค. Apple ์ ์๋ ์๋ช ์ผ๋ก ์ฌ๋ฆฌ๋ฉด Xcode ๊ฐ ๋ฐฐํฌ ํ๋ก๋น์ ๋ ํ๋กํ์ ๊ด๋ฆฌํ๋ค๊ณ ์๋ดํฉ๋๋ค. ๋ช ๋ น์ค๋ก ์ง์ ์๋ช ํ๋ค๋ฉด(๋ฐฉ๋ฒ B) ์๋๋ฅผ ์ค๋นํฉ๋๋ค.์ค๋นํ ๊ฒ ์ด๋ฆ๊ณผ ๋ง๋๋ ๊ณณ ์ฑ ์๋ช ์ธ์ฆ์ Apple ์ Mac ๋ฐฐํฌ ์๋ช ๋ฌธ์๋ Mac App Store ์ฑ์ ใApple Distributionใ ์๋ช ID( Apple Distribution: <ํ ์ด๋ฆ> (<ํ ID>))๋ฅผ ์ฐ๋ผ๊ณ ํฉ๋๋ค. ์ธ์ฆ์ ๊ฐ์์๋ ใMac App Distributionใ(Mac App Store ์ ์ ์ถํ๊ธฐ ์ ์ Mac ์ฑ์ ์๋ช )๋ ๋์ด๋ฉ๋๋ค์ค์น ํจํค์ง ์๋ช ์ธ์ฆ์ ใMac Installer Distributionใ. ํค์ฒด์ธ ์ด๋ฆ์ 3rd Party Mac Developer Installer: <ํ ID>๋ก ๋ณด์ ๋๋คํ๋ก๋น์ ๋ ํ๋กํ Certificates, Identifiers & Profiles ์ Profiles โ ์ถ๊ฐ ๋ฒํผ(+) โ Distribution ์์ ใMac App Store Connectใ(Mac ์ฑ์ฉ) โ ๋ฒ๋ค ID ์ ์ผ์นํ๋ App ID โ ๋ฐฐํฌ ์ธ์ฆ์ โ ์ด๋ฆ โ Generate โ Download. ํ์ผ ํ์ฅ์๋ .provisionprofile์ ๋๋ค. ํ๋กํ์๋ ๋ฐฐํฌ ์ธ์ฆ์๊ฐ ํ๋๋ง ๋ค์ด๊ฐ๋ ์ฑ ์๋ช ์ ์ธ ์ธ์ฆ์(Apple Distribution ๋๋ Mac App Distribution)๋ฅผ ๊ทธ๋๋ก ๊ณ ๋ฅด์ธ์Apple ๋์๋ง์ ใํ์ํ ์ญํ ใ์ Account Holder ๋๋ Admin ์ด๊ณ , ๋ฐฐํฌ ์ธ์ฆ์๋ Developer ID ์ธ์ฆ์๋ฅผ ๋บ ์ข ๋ฅ๋ง๋ค ํ๋น ํ๋๋ง ํ์ฉ๋ฉ๋๋ค. ์ธ์ฆ์๋ฅผ ๋ง๋ค ๋ ํ์ํ ์๋ช ์์ฒญ(CSR)์ iOS ํธ 4๋จ๊ณ์ ๊ฐ์ต๋๋ค. ์ฑ๊ณต ํ์ โ ๋ฐฉ๋ฒ A ๋ผ๋ฉด Signing & Capabilities ์ ์๋ช ์ค๋ฅ๊ฐ ์์ต๋๋ค. ๋ฐฉ๋ฒ B ๋ผ๋ฉด ์๋ช ์ธ์ฆ์ ๋๊ณผ ํ๋กํ ํ์ผ(
.provisionprofile)์ด ์ค๋น๋์ต๋๋ค.
๋น๋์ ์ ๋ก๋
-
flutter build macos๋ก ๋ฆด๋ฆฌ์ค ๋น๋๋ฅผ ๋ง๋ญ๋๋ค.flutter build macos --build-name=1.0.0 --build-number=1๊ธฐ๋ณธ์ด ๋ฆด๋ฆฌ์ค ๋ชจ๋์ด๊ณ , ๊ฒฐ๊ณผ ์ฑ์
build/macos/Build/Products/Release/<์ฑ ์ด๋ฆ>.app์ ์๊น๋๋ค. ์ด ์ฑ์ ad hoc ์๋ช ์ด๋ผ(Flutter 3.47.6 ์์ ํ์ธ) Mac App Store ์ ๋ด๋ ค๋ฉด Apple ์ด ์๊ตฌํ๋ ๋ฐฐํฌ์ฉ ์๋ช (distribution-signed)์ ์ ํ์ผ ํฉ๋๋ค. ์๋ ๋ฐฉ๋ฒ A ๋ B ๋ก ์ ํ๋๋ค. Dart ์ฝ๋๋ฅผ ๋๋ ํํ๋ ค๋ฉด--obfuscate --split-debug-info=<์ฌ๋ณผ ํด๋>๋ฅผ ํจ๊ป ์ค๋๋ค. ์ฑ๊ณต ํ์ ์ ๋ช ๋ น์ดBuilt build/macos/Build/Products/Release/โฆ.app์ ์ถ๋ ฅํ๋ ๊ฒ์ ๋๋ค. -
๋ฐฉ๋ฒ A(๊ถ์ฅ) โ Xcode ๋ก ๋ณด๊ด(Archive)ํ๊ณ ์ฌ๋ฆฝ๋๋ค. Flutter ๋ฌธ์๊ฐ ์๋ดํ๋ ๊ฒฝ๋ก์ ๋๋ค.
open macos/Runner.xcworkspace๋ก ์ฐ ๋ค ๋ค์์ ํฉ๋๋ค.- Runner ํ๊น General โ Identity ์์ App Category ยท Bundle Identifier ยท ๋ฒ์ ๊ณผ ๋น๋ ๋ฒํธ๋ฅผ ํ์ธํฉ๋๋ค.
- ๋ฉ๋ด Product โ Archive ๋ก ์์นด์ด๋ธ๋ฅผ ๋ง๋ญ๋๋ค. Archives organizer ์ ๋ํ๋ฉ๋๋ค.
- ์์นด์ด๋ธ๋ฅผ ๊ณจ๋ผ Validate App ์ผ๋ก ์ ์ถ ์ ์๋ ๊ฒ์ฆ์ ํฉ๋๋ค. ๋ฌธ์ ๊ฐ ์์ผ๋ฉด ๊ณ ์ณ ๋ค์ ๋น๋ํฉ๋๋ค.
- Distribute App ์์ ใTestFlight & App Storeใ(๊ธฐ๋ณธ ๊ถ์ฅ ์ค์ )๋ฅผ ๊ณ ๋ฅด๊ฑฐ๋, Custom ์์ ใApp Store Connectใ๋ฅผ ๊ณ ๋ฅด๊ณ ๋์(destination)์ผ๋ก ์ ๋ก๋๋ฅผ ๊ณ ๋ฆ ๋๋ค. Xcode ๊ฐ ์ฒ๋ฆฌ ยท ํจํค์ง ยท ์ ๋ก๋๋ฅผ ์์ํฉ๋๋ค.
Mac ์ฑ์๋ Distribute App ์ Release Testing ๊ณผ Enterprise ๋ฐฉ์์ ์ธ ์ ์์ต๋๋ค. ์ฑ๊ณต ํ์ ์ Xcode ๊ฐ ์ ๋ก๋๋ฅผ ๋ง์น๊ณ App Store Connect ์ฑ์ ๋น๋ ๋ชฉ๋ก์ ๋น๋๊ฐ ๋ํ๋๋ ๊ฒ์ ๋๋ค.
-
๋ฐฉ๋ฒ B โ ๋ช ๋ น์ค๋ก ์๋ช ํ๊ณ
.pkg๋ฅผ ๋ง๋ค์ด ์ฌ๋ฆฝ๋๋ค. CI ์ฒ๋ผ Xcode ํ๋ฉด์ ์ธ ์ ์์ ๋์ ๊ฒฝ๋ก์ ๋๋ค. Mac App Store ๋ ์ฑ์ ์ค์น ํจํค์ง(.pkg) ๋ก ๋ฐ์ต๋๋ค.์ฃผ์
์ด ๊ฒฝ๋ก๋ ์๋ช ยท entitlements ยท ํ๋กํ์ผ์ ์ง์ ์ฑ ์์ง๋๋ค. Apple ์ด Flutter ์ฑ์ฉ์ผ๋ก ์์ฑ๋ ๋ช ๋ น ํ ๋ฒ์ ์ฃผ์ง๋ ์์์, ์๋๋ Apple ๋ฌธ์์ ๊ท์น์ ์์๋๋ก ์ฎ๊ธด ๊ฒ์ ๋๋ค. ๊ฐ์ ์ผ์ ํ๋ CI ์์๋ Flutter ๋ฌธ์์ ใCreate a build archive with Codemagic CLI toolsใ ์ ์ ์์ต๋๋ค(์๋ํํฐ ๋๊ตฌ๋ฅผ ์๋๋ค). ๋งํ๋ฉด ๋ฐฉ๋ฒ A ๋ฅผ ์ฐ์ธ์.
-
entitlements ํ์ผ์ ์ค๋นํฉ๋๋ค. ๋ฐฐํฌ์ฉ
.app์ ๋ฃ์ entitlements ๋ฅผ ๋ง๋ญ๋๋ค. Apple ์ Xcode ๋ก ๊ฐ๋ฐ ์๋ช ํ ์ฑ์์codesign -d --entitlements - --xml <์ฑ> | plutil -convert xml1 -o - -๋ก entitlements ๋ฅผ ์ถ๋ ฅํด ๋ฐฐํฌ์ฉ ํ์ผ์ ๋ฐํ์ผ๋ก ์ธ ์ ์๋ค๊ณ ์๋ดํ๊ณ , ๋๋ฒ๊ฑฐ ์ฐ๊ฒฐ์ ํ์ฉํ๋com.apple.security.get-task-allow๋ ๋ฐฐํฌ์ฉ์๋ ๊ฑฐ์ ์ฐ์ง ์๋๋ค๊ณ ํฉ๋๋ค. Flutter ๊ฐ ๋ง๋ ๋ฆด๋ฆฌ์ค.app์์ ์ด๋ ๊ฒ ๋ฝ์ผ๋ฉดcom.apple.security.app-sandbox์ ํจ๊ปcom.apple.security.get-task-allow๊ฐ ๋ค์ด ์์ต๋๋ค(Flutter 3.47.6 ์์ ํ์ธ). ๋ฐฐํฌ์ฉ ํ์ผ์์๋ ์ด ํค๋ฅผ ๋นผ๋ ์ชฝ์ด Apple ์๋ด์ ๋ง์ผ๋, 2๋จ๊ณ์์ ์ ํ ์ฑ ๊ถํ๋ง ๋จ๊ธฐ์ธ์. ํ์ผ์ ํ์ค XML ์์ฑ ๋ชฉ๋ก(LF ์ค๋ฐ๊ฟ, ์ฃผ์ ์์, BOM ์์)์ด์ด์ผ ํฉ๋๋ค. -
๋ฐฐํฌ ํ๋ก๋น์ ๋ ํ๋กํ์ ์ฑ ๋ฒ๋ค์ ๋ฃ์ต๋๋ค. 3๋จ๊ณ์์ ๋ฐ์ ํ๋กํ์
<์ฑ>.app/Contents/embedded.provisionprofile๋ก ๋ณต์ฌํฉ๋๋ค. ์ฑ ๋ฒ๋ค์ ๊ณ ์น๋ฉด ์๋ช ์ด ๊นจ์ง๋ฏ๋ก ์๋ ์๋ช ์ ์ ํฉ๋๋ค. TestFlight ๋์์ด ๋๋ ค๋ฉด ํ๋ก๋น์ ๋ ํ๋กํ์ application identifier ๊ฐ ์์ด์ผ ํฉ๋๋ค. -
com.apple.quarantineํ์ฅ ์์ฑ์ ์์ฑ๋๋ค. ํ๋กํ์ ๋ณต์ฌํ ๋ค, ์๋ช ๊ณผ.pkg๋ง๋ค๊ธฐ ์ ์ ํฉ๋๋ค. macOS ์์cpยทditto๋ก ๋ณต์ฌํ๋ฉด ์๋ณธ์com.apple.quarantine์์ฑ์ด ๋ณต์ฌ๋ณธ์๋ ๋ถ์ผ๋ฏ๋ก(macOS ์์ ํ์ธ) ๋ด๋ ค๋ฐ์ ํ๋กํ์ ์์ฑ์ด ์ฑ ๋ฒ๋ค๋ก ๋ฐ๋ผ ๋ค์ด์ฌ ์ ์์ต๋๋ค.xattr -lr "<์ฑ>.app"์ผ๋กcom.apple.quarantine์ด ์๋์ง ๋ณด๊ณ , ์์ผ๋ฉดxattr -dr com.apple.quarantine "<์ฑ>.app"๋ก ์ง์๋๋ค. Apple ์ 2025-02-18 ๋ถํฐ ์ฑ ์์ ๋ชจ๋ ํ์ผ์์ ์ด ์์ฑ์ ์ง์์ผ App Store Connect ์ ์ฌ๋ฆด ์ ์๋ค๊ณ ์๋ดํฉ๋๋ค..pkg๋ฅผ ๋ง๋ ๋ค์ ์ง์ฐ๋ฉด ์ด๋ฏธ ๋ง๋.pkg์์๋ ์์ฑ์ด ๋จ์ผ๋(macOS ์์ ํ์ธ) ๊ทธ๋๋.pkg๋ฅผ ๋ค์ ๋ง๋์ธ์. -
์์ชฝ ์ฝ๋๋ถํฐ ์๋ช ํฉ๋๋ค. ๋ฒ๋ค ์์ ํ๋ ์์ํฌ ๋ฑ ๋ชจ๋ ์คํ ์ฝ๋๋ฅผ ์์ชฝ๋ถํฐ ์๋ช ํ๊ณ ๋ง์ง๋ง์
.app์ ์๋ช ํฉ๋๋ค. ์ด๋ฏธ ์๋ช ๋ ์ฝ๋๋ฅผ ๋ค์ ์๋ช ํ๋ ค๋ฉด-f, ๋ฉ์ธ ์คํ ํ์ผ์๋--entitlements๋ฅผ ๋ํฉ๋๋ค.--deep์ ์ฐ์ง ๋ง๋ผ๊ณ Apple ์ด ๊ถ๊ณ ํฉ๋๋ค. ๋น๋ ์ฐ์ถ๋ฌผ.app์ ๋ค๋ฅธ ํด๋๋ก ์ฎ๊ฒจ ์๋ช ํ๋ค๋ฉดcp -R๋์ditto๋ฅผ ์ฐ์ธ์. ditto ๋ Mac ํ๋ ์์ํฌ ๊ตฌ์กฐ์ ์ค์ํ ์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๋ณด์กดํฉ๋๋ค.codesign -s "Apple Distribution: <ํ ์ด๋ฆ> (<ํ ID>)" -f \ "<์ฑ>.app/Contents/Frameworks/<ํ๋ ์์ํฌ>.framework" codesign -s "Apple Distribution: <ํ ์ด๋ฆ> (<ํ ID>)" -f \ --entitlements "<๋ฐฐํฌ์ฉ>.entitlements" "<์ฑ>.app"์์์ ์๋ช ID ์ด๋ฆ์ Apple ๋ฌธ์์ ํ๊ธฐ์ ๋๋ค. ์ค์ ์ด๋ฆ์
security find-identity -v์ถ๋ ฅ์์ ๊ทธ๋๋ก ๋ณต์ฌํ๊ณ , ๊ฐ์ ์ด๋ฆ์ด ์ฌ๋ฌ ๊ฐ๋ฉด ์ด๋ฆ ๋์ ๊ทธ ์ค์ SHA-1 ํด์๋ก ์ง์ ํ์ธ์. ์ฑ๊ณต ํ์ โcodesign --verify --deep --strict -vv "<์ฑ>.app"๊ฐvalid on disk์satisfies its Designated Requirement๋ฅผ ์ถ๋ ฅํฉ๋๋ค(์๋ช ์ ๋ง๋ค ๋๋--deep์ ์ฐ์ง ๋ง๋ผ๋ ๊ฒ์ด์ง ๊ฒ์ฆ์๋ ์จ๋ ๋ฉ๋๋ค). -
.pkg๋ฅผ ๋ง๋ญ๋๋ค. ์ฑ ํ๋๋ฟ์ด๋ฉดproductbuild์ ๊ฐ์ฅ ๋จ์ํ ํํ๊ฐ Mac App Store ์ ์ถ์ ์ถฉ๋ถํ๋ค๊ณ Apple ์ด ์๋ดํฉ๋๋ค. Mac App Store ์ฉ ํจํค์ง๋--component๋ฐฉ์๋ง ์จ์ผ ํฉ๋๋ค(man productbuild).productbuild --sign "3rd Party Mac Developer Installer: <ํ ID>" \ --component "<์ฑ>.app" /Applications "<์ฑ>.pkg"์ค์น ํจํค์ง ์๋ช ID ๋ ์ฝ๋ ์๋ช ID ์ ๋ฌ๋ผ์
security find-identity -v๋ก ์ฐพ์์ผ ํฉ๋๋ค(-p codesigning์ผ๋ก ๊ฑฐ๋ฅด๋ฉด ๋์ค์ง ์์ต๋๋ค). ์ฑ๊ณต ํ์ โpkgutil --check-signature "<์ฑ>.pkg"๊ฐ ์ค์น ํจํค์ง ์๋ช ์ธ์ฆ์๋ฅผ ๋ณด์ฌ ์ค๋๋ค. -
์ ๋ก๋ํฉ๋๋ค. Apple ์ ์๋ช ํ ์ค์น ํจํค์ง๋ฅผ
altool๋ช ๋ น์ค ๋๊ตฌ๋ Transporter ์ฑ์ผ๋ก ์ ์ถํ๋ผ๊ณ ์๋ดํฉ๋๋ค. Transporter ๋ Mac App Store ์์ ๋ฐ๋ macOS ์ฑ์ ๋๋ค. ๋ช ๋ น์ค์ iOS ํธ 7๋จ๊ณ์ ๊ฐ์ ๋ฐฉ์(API ํค ๋๋ ์ฌ์ฉ์ ์ด๋ฆ๊ณผ ์ฑ ์ํธ)์ผ๋ก ์ธ์ฆํ๊ณ , ํ์์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.xcrun altool --upload-package "<์ฑ>.pkg" \ --apple-id <์ฑ์ Apple ID> --bundle-id <๋ฒ๋ค ID> \ --bundle-short-version-string <๋ฒ์ > --bundle-version <๋น๋ ๋ฒํธ> \ --apiKey <ํค ID> --apiIssuer <๋ฐ๊ธ์ ID>--upload-appํ์์ deprecated ์๋ด์ ์ต์ ์ด๋ฆ ํ์ธ์ iOS ํธ 7๋จ๊ณ์ ์๋ฆผ์ ๋ฐ๋ฅด์ธ์.-t(ํ๋ซํผ)๋ ์ ํ ์ฌํญ์ด๋ฉฐ(altool ๊ฐ์ด๋) ๊ฐ ์ด๋ฆ์ด ๊ฐ์ด๋(osx ยท ios ยท appletvos)์ Xcode 27.0 ์altool --help(macos ยท ios ยท appletvos ยท visionos)์์ ๋ค๋ฅด๋ ์ฐ๋ ค๋ฉด ๋์๋ง๋ก ํ์ธํ์ธ์.
์ฑ๊ณต ํ์ โ ๋ฐฉ๋ฒ B ์ ๊ฐ ๋ช ๋ น์ด ์ค๋ฅ ์์ด ๋๋๊ณ , ์ ๋ก๋ ๋๊ตฌ๊ฐ ๋๋ ๋ค 7๋จ๊ณ์์ ๋น๋๊ฐ ๋ํ๋ฉ๋๋ค.
-
์ํ๊ณผ ์ถ์
- ์ฒ๋ฆฌ๋ฅผ ๊ธฐ๋ค๋ฆฌ๊ณ TestFlight ๋ก ์ํํฉ๋๋ค. ์ฒ๋ฆฌ๊ฐ ๋๋๋ฉด ์ด๋ฉ์ผ์ด ์ค๊ณ ๋น๋๊ฐ ๋ํ๋ฉ๋๋ค. TestFlight ๋ Mac ์ฑ๋ ์ง์ํ๋ฉฐ, Mac ์ฉ TestFlight ๋ฅผ ์ฐ๋ ค๋ฉด macOS ์ฑ์ Xcode 13 ์ด์์ผ๋ก ๋น๋ํ๋ผ๊ณ Apple ์ด ์๋ดํฉ๋๋ค. ๋น๋๊ฐ TestFlight ๋์์ด ๋๋ ค๋ฉด ํ๋ก๋น์ ๋ ํ๋กํ ์์ application identifier ๊ฐ ์์ด์ผ ํฉ๋๋ค. ๋ด๋ถ ยท ์ธ๋ถ ํ ์คํธ ๋ฐฉ๋ฒ์ iOS ํธ 8~9๋จ๊ณ์ ๊ฐ์ต๋๋ค. App Store ๋ก ๋ด๊ธฐ ์ ์ Apple ์ด ๊ณต์ฆํ ๋น๋๋ฅผ ์ง์ ๋๋ ์ค ์ํํ ์๋ ์์ต๋๋ค. ์ฑ๊ณต ํ์ โ ๋น๋๊ฐ ์ฑ์ TestFlight ํญ์ ๋ํ๋๊ณ ํ ์คํฐ๊ฐ ์ค์นํด ์คํํฉ๋๋ค.
- ์ฌ์ฌ์ ์ ์ถํ๊ณ ์ถ์ํฉ๋๋ค. iOS ํธ 10~14๋จ๊ณ์ ๊ฐ์ ํญ๋ชฉ์ ์ฑ์ฐ๊ณ ๋น๋๋ฅผ ๊ณจ๋ผ ์ ์ถํฉ๋๋ค. ์ด๋ฆ ยท ์ฐ๋ น ๋ฑ๊ธ์ฒ๋ผ ํ๋ซํผ์ด ํจ๊ป ์ฐ๋ ์ฑ ์ ๋ณด๋ ์ฑ ๋ ์ฝ๋์ ํ ๋ฒ๋ง ์ฑ์ฐ๊ณ , ์ง์ URL ยท ์ ์๊ถ ยท ์ฑ ์ฌ์ฌ ์ ๋ณด ยท ๋ฒ์ ์ถ์ ์ค์ ๊ฐ์ ๋ฒ์ ์ ๋ณด๋ macOS ๋ฒ์ ํ์ด์ง์์ ์ฑ์๋๋ค(Apple ์ ํ์ ์์ฑ ํ). ํ๋ซํผ๋ง๋ค ์ฑ ๋ฒ์ ์ ๋ฐ๋ก ์ ์ถํ๊ณ , ํ ํ๋ซํผ ๋ฒ์ ์ ์ํ๊ฐ ๋ค๋ฅธ ํ๋ซํผ ๋ฒ์ ์ ์ํ์ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค. ์๋ ์ถ์๋ฅผ ๊ณจ๋๋ค๋ฉด macOS ๋ฒ์ ๋ ๋ฐ๋ก ใ์ด ๋ฒ์ ์ถ์ใ๋ฅผ ๋๋ฌ์ผ ํฉ๋๋ค. ์ฑ๊ณต ํ์ โ macOS ๋ฒ์ ์ ์ํ๊ฐ ใ์ฌ์ฌ ๋๊ธฐ ์คใ์ผ๋ก ๋ฐ๋๋๋ค.
ํ์ธ
- ์๋๋ฐ์ค: ๋ฆด๋ฆฌ์ค
.app์์codesign -d --entitlements - <์ฑ>์ถ๋ ฅ์com.apple.security.app-sandbox๊ฐtrue๋ก ์์ต๋๋ค. ์ฑ์ ์คํํ ๋ค Activity Monitor ์ View โ Columns โ Sandbox ์ด์์ ์ฑ์ด ใYesใ์ ๋๋ค. - ๊ถํ: ๋ฆด๋ฆฌ์ค ๋น๋์์ ๋คํธ์ํฌ ์์ฒญ ยท ํ์ผ ์ด๊ธฐ ๊ฐ์ ๊ธฐ๋ฅ์ด ๋์ํฉ๋๋ค.
- ์ ๋ก๋: ์ฑ์ ๋น๋ ๋ชฉ๋ก(TestFlight ํญ)์ macOS ๋น๋๊ฐ ๋ํ๋๊ณ ๋น๋ ๋ฒํธ๊ฐ ๋ฐฉ๊ธ ์ฌ๋ฆฐ ๊ฐ๊ณผ ๊ฐ์ต๋๋ค.
- ์ ์ถ: macOS ๋ฒ์ ์ ์ํ๊ฐ ใ์ฌ์ฌ ๋๊ธฐ ์คใ์ผ๋ก ๋ฐ๋์์ต๋๋ค. ์ฌ์ฌ๊ฐ ์์๋๋ฉด ใ์ฌ์ฌ ์คใ์ด ๋ฉ๋๋ค.
- ์ถ์: ์ํ๊ฐ ใ๋ฐฐํฌ ์ค๋น๋จ(Ready for Distribution)ใ์ด๊ณ Mac App Store ์์ ์ฑ ์ ํ ํ์ด์ง๊ฐ ์ด๋ฆฝ๋๋ค.
์์ฃผ ๊ฒช๋ ๋ฌธ์
๋คํธ์ํฌ ์์ฒญ์ด ใOperation not permittedใ ์ค๋ฅ๋ก ์คํจํฉ๋๋ค
์๋๋ฐ์ค ์ฑ์ com.apple.security.network.client entitlement ๊ฐ ์์ผ๋ฉด SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) ๊ฐ์ ๋ฉ์์ง๋ก ์์ฒญ์ด ๋งํ๋ค๊ณ Flutter ๋ฌธ์๊ฐ ์์ํฉ๋๋ค. ๊ธฐ๋ณธ ํ
ํ๋ฆฟ์ DebugProfile.entitlements ์๋ ์ด ํค๊ฐ ์์ด ๋๋ฒ๊ทธ ์คํ์์๋ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฉ๋๋ค(Flutter 3.47.6 ์์ ํ์ธ). ๋ฆด๋ฆฌ์ค ๋น๋์์๋ง ์คํจํ๋ค๋ฉด DebugProfile.entitlements ์๋ง ํค๋ฅผ ๋ํ๊ณ Release.entitlements ๋ ๋์น ๊ฒฝ์ฐ์
๋๋ค. ๋ ํ์ผ์ ์ 2๋จ๊ณ์ ํค๋ฅผ ๋๊ฐ์ด ๋ํ์ธ์. Flutter ๋ฌธ์ ๋ณธ๋ฌธ์ ํ์ผ ์ด๋ฆ์ Runner-Release.entitlements ์ฒ๋ผ ์ ์ง๋ง Flutter 3.47.6 ๊ธฐ๋ณธ ํ
ํ๋ฆฟ์ ์ด๋ฆ์ Release.entitlements ์
๋๋ค. ํ๋ก์ ํธ์ macos/Runner/ ํด๋์์ ์ค์ *.entitlements ์ด๋ฆ์ ํ์ธํ์ธ์.
์ ๋ก๋๊ฐ quarantine ์์ฑ ๋๋ฌธ์ ๊ฑฐ๋ถ๋ฉ๋๋ค
Apple ์ macOS ์ฑ์ com.apple.quarantine ํ์ฅ ํ์ผ ์์ฑ์ด ์์ผ๋ฉด ์ ๋๊ณ , 2025-02-18 ๋ถํฐ ์ฑ ์์ ๋ชจ๋ ํ์ผ์์ ์ด ์์ฑ์ ์ง์์ผ App Store Connect ์ ์ฌ๋ฆด ์ ์๋ค๊ณ ์๋ดํฉ๋๋ค. ์ธํฐ๋ท์์ ๋ฐ์ ํ์ผ(์: ๋ด๋ ค๋ฐ์ ํ๋ก๋น์ ๋ ํ๋กํ)์ด ์ฑ ๋ฒ๋ค์ ์์๋์ง ํ์ธํ์ธ์. macOS ์ ํฌํจ๋ xattr ๋์๋ง ๊ธฐ์ค์ผ๋ก xattr -lr <์ฑ>.app ์ ํ์ฅ ์์ฑ์ ๋์ดํ๊ณ , xattr -dr com.apple.quarantine <์ฑ>.app ์ ๊ทธ ์์ฑ์ ์ง์๋๋ค. ์์ฑ์ ์ง์ด ๋ค์๋ .pkg ๋ฅผ ๋ค์ ๋ง๋ค์ด ์ฌ๋ฆฌ์ธ์. ์ด๋ฏธ ๋ง๋ .pkg ์์ ์ฑ์๋ ์์ฑ์ด ๋จ์ ์์ต๋๋ค(macOS ์์ ํ์ธ).
์ฑ ์นดํ ๊ณ ๋ฆฌ๋ ์ด๋์ ์ ํ๋์?
Mac ์ฑ์ App Store Connect ์ ์นดํ
๊ณ ๋ฆฌ์ ๋ณ๋๋ก Xcode ํ๋ก์ ํธ์์๋ ์นดํ
๊ณ ๋ฆฌ๋ฅผ ์ ํฉ๋๋ค. Runner ํ๊น์ General โ Identity โ App Category ์์ App Store Connect ์ ๊ธฐ๋ณธ ์นดํ
๊ณ ๋ฆฌ์ ๊ฐ๊ฑฐ๋ ๊ฐ๊น์ด ๊ฒ์ผ๋ก ๊ณ ๋ฅด์ธ์. Flutter ๋ฌธ์๋ ์ด ๊ฐ์ด none ์ผ ์ ์๋ค๊ณ ํ๊ณ , ๋ณด๊ด๋(retired) Apple ๋ฌธ์๋ Mac App Store ์ ์ ์ถํ๋ ค๋ฉด Info.plist ์ต์์์ LSApplicationCategoryType ํค๋ก ์นดํ
๊ณ ๋ฆฌ๋ฅผ ์ ์ํด์ผ ํ๋ค๊ณ ์๋ดํฉ๋๋ค(๊ฐ์ public.app-category.business ๊ฐ์ UTI). Xcode ๋ฅผ ์ด ์ ์๋ CI ๋ผ๋ฉด macos/Runner/Info.plist ์ ์ด ํค๋ฅผ ์ง์ ๋ฃ์ต๋๋ค.
TestFlight ์์ ๋น๋๋ฅผ ์ธ ์ ์๋ค๊ณ ๋์ต๋๋ค
ํ๋ก๋น์ ๋ ํ๋กํ์ application identifier ๊ฐ ๋น ์ง ๋น๋๋ TestFlight ์์ ์ธ ์ ์๊ณ ใํ ์คํธํ ๋ฒ์ ์ด ์ค๋น๋์ง ์์(Not Available for Testing)ใ์ผ๋ก ๋ณด์ ๋๋ค. ์๋ณ์๊ฐ ํฌํจ๋ ์ ๋น๋๋ฅผ ์ฌ๋ ค์ผ ํฉ๋๋ค. ์๋ ์๋ช ์ด๋ฉด Xcode ๊ฐ ๋ฐฐํฌ ํ๋ก๋น์ ๋ ํ๋กํ์ ๊ด๋ฆฌํด ์ฃผ๊ณ , ์๋ ์๋ช ์ด๋ฉด ์ ๋ฐฉ๋ฒ B ์ 2๋ฒ์ฒ๋ผ ์ง์ ๋ฃ์ต๋๋ค.
์ฌ์ฌ์์ 2.4.5 (Mac App Store ์๊ตฌ ์ฌํญ) ๋ก ๊ฑฐ์ ๋์ต๋๋ค
Mac App Store ์ฑ์๋ ์ฌ์ฌ ์ง์นจ 2.4.5 ์ ์ถ๊ฐ ์๊ตฌ ์ฌํญ์ด ์์ต๋๋ค.
- (i) ์ ์ ํ ์๋๋ฐ์ค๋์ด์ผ ํ๊ณ macOS ํ์ผ ์์คํ ๋ฌธ์๋ฅผ ๋ฐ๋ผ์ผ ํฉ๋๋ค.
- (ii) Xcode ๊ฐ ์ ๊ณตํ๋ ๊ธฐ์ ๋ก ํจํค์ง ยท ์ ์ถํด์ผ ํ๊ณ , ์๋ํํฐ ์ค์น ํ๋ก๊ทธ๋จ์ ์ธ ์ ์์ต๋๋ค. ๋ ๋ฆฝ์ ์ธ ๋จ์ผ ์ฑ ์ค์น ๋ฒ๋ค์ด์ด์ผ ํ๊ณ ๊ณต์ ์์น์ ์ฝ๋๋ ๋ฆฌ์์ค๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
- (iii) ๋์ ์์ด ์๋ ยท ๋ก๊ทธ์ธ ๋ ์๋ ์คํ๋๊ฑฐ๋ ์ฝ๋๋ฅผ ๋๋ฆฌ๋ฉด ์ ๋๊ณ , ์ฌ์ฉ์๊ฐ ์ฑ์ ์ข ๋ฃํ ๋ค์๋ ๋์ ์์ด ๊ณ์ ์คํ๋๋ ํ๋ก์ธ์ค๋ฅผ ๋ง๋ค๋ฉด ์ ๋ฉ๋๋ค. ๋ Dock ์ ์์ด์ฝ์ ์๋์ผ๋ก ์ถ๊ฐํ๊ฑฐ๋ ๋ฐ์คํฌํ์ ๋ฐ๋ก ๊ฐ๊ธฐ๋ฅผ ๋จ๊ธฐ์ง ์์์ผ ํฉ๋๋ค.
- (iv) ์ฌ์ฌ ๋ ๋ณธ ๊ฒ๊ณผ ๋ฌ๋ฆฌ ๊ธฐ๋ฅ์ ๋ฐ๊พธ๋ ๋ ๋ฆฝ ์ฑ ยท kext ยท ์ถ๊ฐ ์ฝ๋ ยท ๋ฆฌ์์ค๋ฅผ ๋ด๋ ค๋ฐ์ ์ค์นํ๋ฉด ์ ๋ฉ๋๋ค.
- (v) ๋ฃจํธ ๊ถํ ์์น์ ์์ฒญํ๊ฑฐ๋ setuid ์์ฑ์ ์ฐ๋ฉด ์ ๋ฉ๋๋ค.
- (vi) ์คํ ์ ์ฌ์ฉ๊ถ ํ๋ฉด์ ๋ณด์ด๊ฑฐ๋ ๋ผ์ด์ ์ค ํค๋ฅผ ์๊ตฌํ๊ฑฐ๋ ์์ฒด ๋ณต์ฌ ๋ฐฉ์ง๋ฅผ ๊ตฌํํ๋ฉด ์ ๋ฉ๋๋ค.
- (vii) ์ ๋ฐ์ดํธ๋ Mac App Store ๋ก๋ง ๋ฐฐํฌํด์ผ ํฉ๋๋ค. ๋ค๋ฅธ ์ ๋ฐ์ดํธ ๋ฐฉ์์ ํ์ฉ๋์ง ์์ต๋๋ค.
- (viii) ํ์ฌ ์ถ์๋ OS ์์ ์คํ๋์ด์ผ ํ๊ณ , deprecated ๋์๊ฑฐ๋ ์ ํ ์ค์น๋๋ ๊ธฐ์ (์: Java)์ ์ฐ๋ฉด ์ ๋ฉ๋๋ค.
- (ix) ๋ชจ๋ ์ธ์ด์ ํ์งํ๋ฅผ ํ๋์ ์ฑ ๋ฒ๋ค ์์ ๋ด์์ผ ํฉ๋๋ค.
๊ทธ ๋ฐ์ ๊ฑฐ์ ์ฌ์ (2.1 ยท 4.x ยท 5.1.1)์ ๋ตํ๋ ๋ฐฉ๋ฒ์ App Store (iOS ยท iPadOS) ํธ์ ใ์์ฃผ ๊ฒช๋ ๋ฌธ์ ใ์ ๊ฐ์ต๋๋ค. ์คํ ์ด๋ณ ์ฌ์ ์ ๋ฒํธ, ์ฌ์ ์ถ ๋ฐฉ๋ฒ์ ์ฌ์ฌ ๊ฑฐ์ ๋์์๋ ๋ชจ์์ต๋๋ค.
ํ ์ฑ ๋ ์ฝ๋๋ก ํฉ์น ์ ์๋์? ์ด๋ฏธ iOS ์ macOS ๋ฅผ ๋ฐ๋ก ๋์ต๋๋ค
Apple ์ ํ๋ซํผ๋ณ๋ก ๋ฐ๋ก ๋ง๋ ์ฑ ๋ ์ฝ๋๋ ํฉ์น ์ ์๋ค๊ณ ์๋ดํฉ๋๋ค. ์ ๋๋ฒ์ค ๊ตฌ์ ์ ํ๋ ค๋ฉด ํ ๋ ์ฝ๋๋ง ๋จ๊ธฐ๊ณ ๋๋จธ์ง๋ฅผ ํ๋งค ์ค๋จํ ๋ค ๊ทธ ๋ ์ฝ๋์ ํ๋ซํผ์ ๋ํด์ผ ํ๋๋ฐ, ํ๋งค ์ค๋จํ ์ฑ์ ์๋ ์ ํ ํ์ด์ง๋ ์ธ ์ ์๊ฒ ๋๊ณ ๊ธฐ์กด ์ฌ์ฉ์์๊ฒ ์ ๋ฐ์ดํธ๋ฅผ ์ค ์ ์์ผ๋ฉฐ ํ์ ๊ณผ ๋ฆฌ๋ทฐ๋ ์ฎ๊ฒจ์ง์ง ์๋๋ค๊ณ Apple ์ด ์ค๋ช ํฉ๋๋ค.
Intel Mac ์ง์์ ๋์ด๋ ๋๋์?
Apple ์ 2026-09-09 ์์์์ macOS 26 ์ด Intel Mac ๊ณผ Rosetta ๋ฅผ ์ง์ํ๋ ๋ง์ง๋ง ๋ฆด๋ฆฌ์ค์ด๊ณ macOS 27 ์ Apple silicon ์ ์ฉ์ด๋ผ๊ณ ๋ฐํ์ต๋๋ค. Apple silicon ๋ง ์ง์ํ๋ ค๋ฉด Xcode ์ ๋น๋ ์ํคํ
์ฒ๋ฅผ arm64 ์ ์ฉ์ผ๋ก ํ๊ณ ๋ค์ ๋น๋ํด ์ ์ถํ๋ผ๊ณ ์๋ดํฉ๋๋ค. App Store Connect ๋ฆด๋ฆฌ์ค ๋
ธํธ(2026-06-18)๋ ์ต์ ์์คํ
๋ฒ์ ์ด 13 ์ด์์ธ ์ ๋๋ฒ์ค macOS ์ฑ์ด x86_64 ์ํคํ
์ฒ๋ฅผ ๋นผ๊ณ Intel Mac ์ง์์ ์ค๋จํ ์ฑ Mac App Store ์ ์ฌ๋ฆด ์ ์๋ค๊ณ ์๋ฆฝ๋๋ค. Flutter 3.47.6 ๊ธฐ๋ณธ ํ
ํ๋ฆฟ์ ์ต์ macOS ๋ 12.0 ์ด๋ฏ๋ก arm64 ์ ์ฉ์ผ๋ก ์ค์ด๋ ค๋ฉด 13 ์ด์์ผ๋ก ์ฌ๋ ค์ผ ํ ์ ์์ต๋๋ค. Flutter ๋ Intel(x64) ์ง์์ ๋จ๊ณ์ ์ผ๋ก ์ค์ด๋ ์ค์ด๋ผ๊ณ ์ง์ ํ๋ซํผ ํ์์ ์๋ฆฝ๋๋ค. Flutter 3.47.6 ์ flutter build macos ๋ ๊ธฐ๋ณธ์ผ๋ก x86_64 ์ arm64 ๋ฅผ ํจ๊ป ๋ด์ universal ์ฑ์ ๋ง๋ญ๋๋ค. Apple silicon ์ ์ฉ์ผ๋ก ๋ง๋ค๋ ค๋ฉด flutter config --enable-macos-arm64-only ๋ฅผ ์ผ ๋ค ๋ค์ ๋น๋ํ์ธ์(Flutter ๋๊ตฌ์ ์๋ด์ด๋ฉฐ ๊ธฐ๋ณธ๊ฐ์ ์์ผ๋ก ๋ฐ๋ ์ ์์ต๋๋ค). ์
๋ก๋ ์๊ฑด์ผ๋ก ๋ชป ๋ฐ์ ๋ฌธ์ฅ์ ํ์ธํ์ง ๋ชปํ์ผ๋, ์ง์ ๋์ Mac ์ ์ง์ ์ ํ์ธ์.
๋ค์ ๋จ๊ณ
Mac ์ฑ๊น์ง ์ค๋น๋๋ค๋ฉด ์ ์ถ ์ง์ ์ ์ ์ถ ์ ์ฒดํฌ๋ฆฌ์คํธ์ Mac App Store ๊ตฌ์ญ์ ํ์ผ์ธ์. iPhone ยท iPad ์ฑ์ App Store (iOS ยท iPadOS) ํธ์์, ๋ค๋ฅธ ์คํ ์ด๋ ์คํ ์ด๋ณ ์๋ด์์ ๊ณ ๋ฆ ๋๋ค. ์ถ์ํ ๋ค์ ์ ๋ฐ์ดํธ์ ๊ฑฐ์ ๋์์ ์ถ์ ํ ์ด์์์ ๋ค๋ฃน๋๋ค.
Sources
- developer.apple.com/macos/distribution
- developer.apple.com/app-store/review/guidelines
- developer.apple.com/documentation/xcode/preparing-your-app-for-distribution
- developer.apple.com/documentation/xcode/configuring-the-macos-app-sandbox
- developer.apple.com/documentation/bundleresources/entitlements/com.apple.security.app-sandbox
- developer.apple.com/documentation/bundleresources/entitlements/com.apple.security.network.client
- developer.apple.com/documentation/bundleresources/entitlements/com.apple.security.files.user-selected.read-write
- developer.apple.com/help/app-store-connect/reference/app-uploads/app-sandbox-information
- developer.apple.com/help/account/certificates/certificates-overview
- developer.apple.com/help/account/provisioning-profiles/create-an-app-store-provisioning-profile
- developer.apple.com/help/account/identifiers/register-an-app-id
- developer.apple.com/documentation/xcode/creating-distribution-signed-code-for-the-mac
- developer.apple.com/documentation/xcode/packaging-mac-software-for-distribution
- developer.apple.com/documentation/xcode/distributing-your-app-for-beta-testing-and-releases
- developer.apple.com/help/app-store-connect/create-an-app-record/add-platforms
- developer.apple.com/help/app-store-connect/manage-builds/upload-builds
- help.apple.com/asc/appsaltool/en.lproj/static.html
- help.apple.com/itc/transporteruserguide/en.lproj/static.html
- developer.apple.com/help/app-store-connect/test-a-beta-version/testflight-overview
- developer.apple.com/documentation/bundleresources/information-property-list/cfbundleversion
- developer.apple.com/news/upcoming-requirements
- developer.apple.com/news/?id=k1mtkt1k
- developer.apple.com/help/app-store-connect/release-notes
- developer.apple.com/documentation/security/notarizing-macos-software-before-distribution
- developer.apple.com/library/archive/releasenotes/General/SubmittingToMacAppStore/index.html
- docs.flutter.dev/deployment/macos
- docs.flutter.dev/platform-integration/macos/building
- docs.flutter.dev/reference/supported-platforms
- docs.flutter.dev/deployment/obfuscate
- developer.apple.com/programs/whats-included
- developer.apple.com/documentation/security/customizing-the-notarization-workflow
- developer.apple.com/documentation/technotes/tn3127-inside-code-signing-requirements
- developer.apple.com/documentation/bundleresources/information-property-list/lsapplicationcategorytype
- developer.apple.com/help/app-store-connect/create-an-app-record/add-a-new-app
- developer.apple.com/help/app-store-connect/manage-submissions-to-app-review/overview-of-submitting-for-review
- developer.apple.com/help/app-store-connect/manage-your-apps-availability/select-an-app-store-version-release-option
- developer.apple.com/help/app-store-connect/reference/app-uploads/app-build-statuses