Conversation
- iOSยทwatchOS ์ ํ๊ฒ์ `$(AppIdentifierPrefix)com.umc.product.shared` ๋ฅผ `keychain-access-groups` ์ฒซ ํญ๋ชฉ์ผ๋ก ์ ์ธ (#1147 ์์ ์ ์ค๋ #627 ์ ์ค์ ) - `UMCWatchApp.entitlements` ์ ๊ท ์์ฑ ํ `watchAppProject(entitlements:)` ๋ก ๋ฐฐ์ โ ํ์ผ๋ง ๋ง๋ค๊ณ ์ธ์๋ฅผ ๋๊ธฐ์ง ์์ผ๋ฉด ๋ฌดํจ๋ผ ์ด ๋ฐฐ์ ์ด ํต์ฌ - ๋์งธ ํญ๋ชฉ์ ๊ฐ ํ๊ฒ ์๊ธฐ App ID ๊ทธ๋ฃน์ ๋จ๊ฒจ ๊ธฐ์กด ๊ธฐ๋ณธ ๊ทธ๋ฃน์ ์ ์ฅ๋ ํ ํฐ์ด ๊ณ์ ์กฐํ๋๊ฒ ์ ์ง (์ ๋ฐ์ดํธ ์ ๊ฐ์ ๋ก๊ทธ์์ ๋ฐฉ์ง) - `KeychainTokenStore` ๋ access group ๋ฏธ์ง์ ๊ธฐ๋ณธ๊ฐ ๊ท์น์ ์์กดํจ์ ๋ฌธ์ ์ฃผ์์ผ๋ก ๋ช ์ - `docs/claude/build-and-modules.md` ์ ๋ฐฐ์ด ์์ ๊ณ์ฝยทwatchOS ์ ์ฝยท์๋ช ์ฃผ์ ๊ท์ฝ ์ถ๊ฐ
- UMCApp.entitlements ์ฃผ์์์ ์์ ฏ ํ๊ฒ์ ๊ณต์ ๊ทธ๋ฃน ๋์์ฒ๋ผ ์ฝํ๋ ํํ ์ ๊ฑฐ (์์ ฏ์ Keychain ๋ฏธ์ฌ์ฉ) - KeychainTokenStore ๋ฌธ์ ์ฃผ์์ clear() ์ญ์ ๋ชจ๋ access group ๋์์์ ๋ช ์
Open
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
๐ ๊ด๋ จ ์ด์
Closes #1213
โจ PR ์ ํ
๐ ๋ฒ๊ทธ ์์ โ #1147 ๋ฒ๋ค ID ์ ๋ ฌ ๊ณผ์ ์์ ์ ์ค๋ ๊ณต์ Keychain Access Group entitlement ๋ณต๊ตฌ
๐ท ์คํฌ๋ฆฐ์ท or ์์(UI ๋ณ๊ฒฝ ์)
ํด๋น ์์
๐ ๏ธ ์์ ๋ด์ฉ
PR #627(
744ad80b)์ด ๋ฃ์๋ ๊ณต์ Keychain Access Group entitlement ๋ฅผ #1147(a68f93c2)์ด "๋ฏธ์ฌ์ฉ" ์ฌ์ ๋ก iOSยทwatch ์์ชฝ์์ ์ ๊ฑฐํ์ต๋๋ค(์์น entitlements ๋ ํ์ผ์งธ ์ญ์ ,Project.swift์entitlements:์ธ์๋ ํจ๊ป ์ฌ๋ผ์ง). ํํ ๋ฒ๋ค ID ์ฒด๊ณ ๊ธฐ์ค์ผ๋ก ๋ณต๊ตฌํฉ๋๋ค.UMCApp/UMCApp.entitlementsโkeychain-access-groups์ถ๊ฐ$(AppIdentifierPrefix)com.umc.product.shared(๊ณต์ ๊ทธ๋ฃน), ๋์งธ ํญ๋ชฉ$(AppIdentifierPrefix)com.umc.product(๊ธฐ๋ณธ ๊ทธ๋ฃน)UMCApp/UMCWatchApp/UMCWatchApp.entitlementsโ ์ ๊ท ์์ฑ$(AppIdentifierPrefix)com.umc.product.shared, ๋์งธ ํญ๋ชฉ$(AppIdentifierPrefix)com.umc.product.watchkitappUMCApp/UMCWatchApp/Project.swiftโwatchAppProject(entitlements: .file(path: "UMCWatchApp.entitlements"))๋ฐฐ์UMCApp/Core/Network/Sources/Auth/KeychainTokenStore.swiftโ access group ๋์์ ์ค๋ช ํ๋ ๋ฌธ์ ์ฃผ์๋ง ์ถ๊ฐ, ๋ก์ง ๋ฌด๋ณ๊ฒฝdocs/claude/build-and-modules.mdโ ใ๊ณต์ Keychain Access Groupใ ์์ ์ถ๊ฐ (์ธ ๋ฒ์งธ ์ ์ค ๋ฐฉ์ง์ฉ ๊ท์ฝ ๋ฌธ์ํ)๊ฒ์ฆ
tuist install+tuist generate์ฑ๊ณตUMCWatchApp.xcodeproj/project.pbxproj์CODE_SIGN_ENTITLEMENTS = UMCWatchApp.entitlements(Debug/Release ์์ชฝ) ํ์ธcd UMCApp && make testโ TEST SUCCEEDED (32 tests / 5 suites, iPhone 17 Pro ์๋ฎฌ๋ ์ดํฐ)plutil -lint๋ entitlements ๋ชจ๋ ํต๊ณผ๐ ์ถํ ์งํ ์ํฉ
TokenStoreยทKeychainTokenStore์ ๋ฉํฐํ๋ซํผ ๋ชจ๋ ์ถ์ถ์ด ํ์ํฉ๋๋ค. ํ์ฌCoreNetwork๋ KakaoSDK(iOS 13+ ์ ์ฉ)ยทGoogleSignIn(macOS/iOS ์ ์ฉ)์ ์์กดํด watchOS ๋น๋๊ฐ ๋ถ๊ฐ๋ฅํ๋ฏ๋ก, ์์ ๋ก๊ทธ์ธ SDK ์๋ ๋ณ๋ ๋ชจ๋๋ก ๋ผ์ด๋ด์ผ ํฉ๋๋ค โ ๐ ETC: WatchConnectivity ํ ์คํธ ํ๊ฒ + CI watchOS ๋น๋ ๊ฒ์ฆ ์ถ๊ฐย #1216 ๋ฒ์.com.umc.productยทcom.umc.product.watchkitapp๋ ๊ฐ์ Keychain Sharing capability ์com.umc.product.shared๊ทธ๋ฃน ๋ฑ๋ก. ๋ฏธ๋ฑ๋ก์ด๋ฉด ์ค๊ธฐ๊ธฐ/์์นด์ด๋ธ ์๋ช ์ด ์คํจํ๊ณ ๋ฐํ์ ์ฆ์์SecItemAdd์errSecMissingEntitlement(-34018)์ ๋๋ค. ์๋ฎฌ๋ ์ดํฐ ๋น๋ยทํ ์คํธ๋ ์ํฅ ์์ต๋๋ค.๐ ๋ฆฌ๋ทฐ ํฌ์ธํธ
com.umc.product/.watchkitapp/group.com.umc.product.widget)์ ๋ง์ถฐ$(AppIdentifierPrefix)com.umc.product.shared๋ก ์ ํ์ต๋๋ค. ํ ID ๋ฅผ ๋ฌธ์์ด๋ก ๋ฐ์ง ์๊ณ ๋ ํฌ ๊ด๋ก๋๋ก$(AppIdentifierPrefix)๋ฅผ ์ฌ์ฉํฉ๋๋ค.kSecAttrAccessGroup๋ฏธ์ง์ SecItemAdd๋ ๋ฐฐ์ด ์ฒซ ํญ๋ชฉ์ ์ ์ฅํ๋ฏ๋ก, ๊ณต์ ๊ทธ๋ฃน์ ์ฒซ ๋ฒ์งธ์ ๋๋ฉด Swift ์ชฝ์ ํ ํ๋ฆฌํฝ์ค ๋ฌธ์์ด์ ๋ง๋ค์ง ์๊ณ ๋ ํ ํฐ์ด ๊ณต์ ๊ทธ๋ฃน์ผ๋ก ๊ฐ๋๋ค.KeychainTokenStore๊ฐ access group ์ ์ง์ ํ์ง ์์ผ๋ฏ๋ก ๋ก์ง ๋ณ๊ฒฝ์ด ํ์ ์์์ต๋๋ค.โ Checklist
PR์ด ๋ค์ ์๊ตฌ ์ฌํญ์ ์ถฉ์กฑํ๋์ง ํ์ธํด์ฃผ์ธ์!!!