๐ง [Chore] NearbyInteraction ๊ถํ ๋ฌธ๊ตฌ ์ ์ ยท ์กฐ์ง ํ App ID ์๋ช ๋ฐ ์ค๊ธฐ๊ธฐ ๊ฒ์ฆ ์ ์ฐจ ๋ฌธ์ํ (#1241) - #1271
Merged
Merged
Conversation
- NSNearbyInteractionUsageDescription ์ด "์์น๋ฅผ ์ฌ์ฉํฉ๋๋ค"๋ผ๊ณ ์์ ํ๊ณ ์์์ผ๋ NearbyInteraction ์ UWB ๋ก ์๋ ๊ธฐ๊ธฐ์์ ๊ฑฐ๋ฆฌยท๋ฐฉํฅ๋ง ์ฌ๊ณ CoreLocation ์ ์ฐ์ง ์๋๋ค โ App Review ์ง์ ๋ฆฌ์คํฌ - ๊ฐ์ Info.plist ์ NSLocationWhenInUseUsageDescription(GPS ์ถ์)๊ณผ ๋ณ๊ฐ ๊ถํ์์ด ๋๋ฌ๋๋๋ก ๋ฌธ๊ตฌ์ ๊ทผ๊ฑฐ ์ฃผ์์ ํจ๊ป ์ ๋ฆฌ - ๋ช ํจ ๊ด๋ จ ๋๋จธ์ง ๊ถํ ํค(์นด๋ฉ๋ผยท์ฌ์ง ์ถ๊ฐยท๋ก์ปฌ ๋คํธ์ํฌยทBonjour)๋ ์ค์ ์ฌ์ฉ์ฒ์ ๋์กฐํด ์์ ์ด ์ ํํจ์ ํ์ธ, ๋ณ๊ฒฝ ์์
- docs/claude/nearby-exchange-device-verification.md ์ ๊ท โ ํ์ 1๋ช ์ด ๋ฌธ์๋ง ๋ณด๊ณ ์ค๊ธฐ๊ธฐ ๊ฒ์ฆ์ ์ฌํํ ์ ์๊ฒ ํ๋ ๊ฒ์ด ์์ฑ ๊ธฐ์ค - UMCApp.entitlements ์์ ์ญ์ฐํ App ID 8B8B4462NV capability ์ฒดํฌ๋ฆฌ์คํธ (Nearby InteractionยทPushยทSign in with AppleยทiCloud CloudKitยทApp Groups), ๋ณ๋ ์์ฑ์ด ํ์ํ iCloud ContainerยทApp Group ์๋ณ์๋ฅผ ๋ฐ๋ก ํ์ - UWB ๊ธฐ๊ธฐ ์๊ฑด๊ณผ NI ๋์นญ ์กฐ๊ฑด, ๊ธฐ๊ธฐ ์กฐํฉ๋ณ(UWB 2๋/1๋/0๋) ๊ฒ์ฆ ๊ฐ๋ฅ ๋ฒ์ ํ - -bcHarness ์ง์ ๋ถํฐ ๋ช ํจ ์๋ณตยทUWB ๋จ๋ ๊ฒ์ฆ๊น์ง ๋จ๊ณ๋ณ ๊ธฐ๋ ๊ฒฐ๊ณผ ๋ช ์ - ์ฆ์ 15๊ฑด ํธ๋ฌ๋ธ์ํ ํ (์๋ช ์คํจยทํผ์ด ๋ฏธ๋ฐ๊ฒฌยท๊ฑฐ๋ฆฌ ๋ฏธํ์ยท๊ถํ ํ์ ๋๋ฝ) - CLAUDE.md ๋ ํผ๋ฐ์ค ํ์ ๋ฌธ์ ํ ์ถ๊ฐ
# Conflicts: # CLAUDE.md
# Conflicts: # CLAUDE.md
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 #1241
โจ PR ์ ํ
[Chore]โ ๋ฐฐํฌ ์ค๋น. ํ๋ก๋์ ๋์ ๋ณ๊ฒฝ ์์(๊ถํ ์๋ด ๋ฌธ๊ตฌ 1๊ฑด ์ ์ + ๋ฌธ์ ์ถ๊ฐ).๐ท ์คํฌ๋ฆฐ์ท or ์์(UI ๋ณ๊ฒฝ ์)
ํด๋น ์์ โ ํ๋ฉด ๋ณ๊ฒฝ ์์. ์ฌ์ฉ์์๊ฒ ๋ณด์ด๋ ์ ์ผํ ๋ณํ๋ NearbyInteraction ๊ถํ ํ์ ์ ์๋ด ๋ฌธ๊ตฌ๋ค.
๐ ๏ธ ์์ ๋ด์ฉ
1) NearbyInteraction ๊ถํ ๋ฌธ๊ตฌ ์ ์ โ
UMCApp/Project.swift:34-38๊ธฐ์กด ๋ฌธ๊ตฌ๊ฐ "์์น๋ฅผ ์ฌ์ฉํฉ๋๋ค"๋ผ๊ณ ์์ ํ๊ณ ์์๋๋ฐ, NearbyInteraction ์ UWB ๋ก ์๋ ๊ธฐ๊ธฐ์์ ๊ฑฐ๋ฆฌยท๋ฐฉํฅ๋ง ์ฌ๊ณ CoreLocation ์ ์ ํ ์ฐ์ง ์๋๋ค. ๊ฐ์ Info.plist ์ GPS ์ถ์์ฉ
NSLocationWhenInUseUsageDescription์ด ๋ฐ๋ก ์์ด ๋ ๊ถํ์ ๊ฐ์ ๊ฒ์ผ๋ก ์ค๋ ํ ์์ง๋ ์์๋ค. ์ค์ ์ฉ๋์ ๋ค๋ฅธ purpose string ์ App Review ์ง์ ๋์์ด๋ผ ๋จผ์ ์ ์ ํ๋ค.๊ทผ๊ฑฐ:
PeerRangingCoordinator๋NISession์ผ๋ก ํผ์ด๋ณ ๊ฑฐ๋ฆฌ(PeerDistance.meters)๋ง ์ธก์ ํ๊ณ ์์น๋ฅผ ์ฐ์ง ์๋๋ค.์ ์ ํ ํค ์์ ์ ์ด๋ ๊ฒ ์ผ๋์ง(NI ๋ CoreLocation ์ ์ฐ์ง ์๋๋ค / GPS ์ถ์ ๊ถํ๊ณผ ๋ณ๊ฐ๋ค)๋ฅผ ์ฃผ์์ผ๋ก ๋จ๊ฒจ ๊ฐ์ ๋ฌธ๊ตฌ๊ฐ ๋ค์ ๋๋์์ค์ง ์๊ฒ ํ๋ค.
2) ๋ช ํจ ๊ด๋ จ ๊ถํ ๋ฌธ๊ตฌ ์ ์ ์ ๊ฒ โ ๋๋จธ์ง๋ ๋ณ๊ฒฝ ์์
์ค์ ์ฌ์ฉ์ฒ์ ๋์กฐํด ์์ ์ด ์ ํํจ์ ํ์ธํ๊ณ , ๋ถํ์ํ diff ๋ฅผ ๋ง๋ค์ง ์๊ธฐ ์ํด ์๋์ง ์์๋ค.
NSLocalNetworkUsageDescriptionMPCTransport.swiftโ MPC ๋ธ๋ผ์ฐ์ง/๊ด๊ณNSBonjourServicesMPCTransport.swift:43serviceType = "umc-card"โ_umc-card._tcp/._udp์ผ์นNSCameraUsageDescriptionQRScannerView.swiftโ VisionKitDataScannerViewControllerQR ์ค์บNSPhotoLibraryAddUsageDescriptionCardImageSaving.swift:41PHPhotoLibrary.requestAuthorization(for: .addOnly)โ ์ฐ๊ธฐ ์ ์ฉNSLocationWhenInUseUsageDescriptionLocationManager.swift(GPS ์ถ์)๋ค๋ฅธ ํ๊ฒ(์์ ฏยท์์น)์ ๊ฐ์ ๊ถํ ํค๊ฐ ์ค๋ณต ์ ์ธ๋ผ ์๋์ง๋ ํ์ธํ๋ค โ ์์.
UMCApp/ํธ๋ฆฌ์ ๋ฌผ๋ฆฌInfo.plistํ์ผ์ด 0๊ฐ๊ณ (์ ๋ถ Tuist ์์ฑ),NS*UsageDescription์ ํฌํจํ ์์ฑ plist ๋Derived/InfoPlists/UMCApp-Info.plistํ๋๋ฟ์ด๋ค.3) ์ค๊ธฐ๊ธฐ ๊ฒ์ฆ ๋ฌธ์ ์ ๊ท โ
docs/claude/nearby-exchange-device-verification.md๊ทผ๊ฑฐ๋ฆฌ ๊ตํ์ ์๋ฎฌ๋ ์ดํฐ๋ก ๊ฒ์ฆ์ด ๋ถ๊ฐ๋ฅํ๋ฐ(์ค๊ธฐ๊ธฐ 2๋ ํ์), ์กฐ์ง ํ App ID ์ ํ์ํ capability ๊ฐ ์ ๋ฆฌ๋์ด ์์ง ์์ ํ ์ ์ฒด๊ฐ ๊ฒ์ฆ์ ์ฌํํ์ง ๋ชปํ๋ ์ํ์๋ค. ํ์ 1๋ช ์ด ์ด ๋ฌธ์๋ง ๋ณด๊ณ ๊ฒ์ฆ์ ์ฒ์๋ถํฐ ๋๊น์ง ์ฌํํ ์ ์๋ ๊ฒ์ ์์ฑ ๊ธฐ์ค์ผ๋ก ์ผ์๋ค.
8B8B4462NVcapability ์ฒดํฌ๋ฆฌ์คํธ โUMCApp.entitlements์ค์ ๋ด์ฉ์์ ์ญ์ฐ. Nearby Interaction ยท Push Notifications ยท Sign In with Apple ยท iCloud(CloudKit) ยท App Groups. iCloud Container(iCloud.com.umc.product)ยทApp Group(group.com.umc.product.widget)์ฒ๋ผ ๋ณ๋๋ก ์์ฑยท์ฐ๊ฒฐํด์ผ ํ๋ ์๋ณ์๋ โ ๋ก ๊ตฌ๋ถํ๊ณ , ์์ ฏยท์์น ๋ถ์ ํ๊ฒ App ID ๋ ํฌํจํ๋ค.-bcHarness)๋ถํฐ MPC ๋ฐ๊ฒฌ โ ์ฐ๊ฒฐ โ ๋ช ํจ ์๋ณต โ UWB ๊ฑฐ๋ฆฌ๊น์ง, ๊ฐ ๋จ๊ณ์ ๋ฌด์์ด ๋ณด์ด๋ฉด ์ฑ๊ณต์ธ์ง(๊ธฐ๋ ๊ฒฐ๊ณผ) ๋ฅผ ๋ถ์๋ค. MPC ๋ฅผ ๋นผ๊ณ NI ๋ง ๋ณด๋ UWB ๋จ๋ ์ ์ฐจ๋ ๋ณ๋๋ก ๋ฃ์๋ค.CLAUDE.md๋ ํผ๋ฐ์ค ํ์ ๋ฌธ์ ํ ์ถ๊ฐ.๋ฌธ์ ์์ฑ ์ Debug ํ๋ค์ค ์ฝ๋๋ฅผ ์ง์ ์ฝ์ด ์ง์ ๊ฒฝ๋ก๋ฅผ ํ์ธํ๋ค โ ํ๋ค์ค ์ง์ ์ ์คํ ์ธ์
-bcHarness๊ฐ ์ ์ผํ ๊ฒฝ๋ก์ด๊ณ UI ๋ฒํผ์ด ์๋ค(RootTabView.swift:79-84). ์ถ์ธก์ผ๋ก ์ด ์ ์ฐจ๊ฐ ์๋๋ก ๋ชจ๋ ๋จ๊ณ๋ฅผfile:line๊ทผ๊ฑฐ์ ํจ๊ป ์ ๋ฆฌํ๋ค.๊ฒ์ฆ
cd UMCApp && make testโ** TEST SUCCEEDED **(5 suites / 32 tests).tuist generateํ ์์ฑ๋Derived/InfoPlists/UMCApp-Info.plist๋ฅผPlistBuddy๋ก ์ง์ ์ด์ด ์ ๋ฌธ๊ตฌ๊ฐ ์ค์ ๋ก ๋ฐ์๋๊ณ ๋๋จธ์ง ํคยทNSBonjourServices๋ ๊ทธ๋๋ก์์ ํ์ธํ๋ค.๐ ์ถํ ์งํ ์ํฉ
๐ง ์ด PR ๋ก ๋๋ผ ์ ์๋ ํญ๋ชฉ (์ฌ๋ ์ ํ์)
Apple Developer ํฌํธ์ App ID capability ๋ฐ์ โ ํฌํธ ์ ๊ทผ ๊ถํ์ด ์๋ ๋ฉ์ธํ ์ด๋๊ฐ ์ง์ ์ํํด์ผ ํ๋ค. ์ฝ๋ยท๋ฌธ์๋ก๋ "๋ฌด์์ ์ผ์ผ ํ๋์ง"๊น์ง๋ง ํ์ ํ ์ ์๋ค.
com.umc.product์์ ๋ฌธ์ 3-1 ์ฒดํฌ๋ฆฌ์คํธ๋๋ก capability on/off ์ํ ํ์ธยท๋ฐ์ (ํนํ Nearby Interaction โ ๊บผ์ ธ ์์ผ๋ฉด UWB ๊ฒ์ฆ์ด ์๋ช ๋จ๊ณ์์ ๋งํ๋ค)iCloud.com.umc.productยท App Groupgroup.com.umc.product.widget์ ํฌํธ ์กด์ฌยท์ฐ๊ฒฐ ์ฌ๋ถ ํ์ธcom.umc.product.widget,com.umc.product.watchkitapp) ์กด์ฌ ํ์ธํ์ ๊ณผ์
NSLocationWhenInUseUsageDescription๋ฌธ๊ตฌ๋ GPS ์ถ์๋ง ์์ ํ๋๋ฐ, ์ค์ ๋ก๋ ์คํฐ๋ ์ฅ์ ์ ํ ์ง๋(MapPickerLocationProvider.swift:48)์์๋requestWhenInUseAuthorization()์ ํธ์ถํ๋ค. ๊ฑฐ์ง์ ์๋์ง๋ง ๋ชจ๋ ์ฌ์ฉ์ฒ๋ฅผ ๋ฎ์ง ๋ชปํ๋ค โ Apple ์ purpose string ์ด ์ ์ฌ์ฉ์ฒ๋ฅผ ํฌ๊ดํ๊ธธ ์๊ตฌํ๋ค. ๋ค๋ง (a) ๋ช ํจ ๋ฒ์ ๋ฐ์ด๊ณ (b) ํด๋น provider ์TODO(#1017)๋กLocationManagerํตํฉ ํ ์ ๊ฑฐ ๊ฒํ ๊ฐ ๊ฑธ๋ ค ์์ด ๋ฌธ๊ตฌ๋ฅผ ์ด๋๊น์ง ๋ํ์ง๊ฐ ์ ํ ํ๋จ์ด๋ผ, ์ด PR ๋ฒ์์์๋ ์๋์ง ์์๋ค. โป๏ธ Refactor: LocationManager ยท GeofenceEvent CoreFoundation ์ด๊ด โ LocationProviding ์ค๊ตฌํ์ฒด ๋ถ์ฌ ํด์ย #1017 ์ ๋ฆฌ ์ ํจ๊ป ๋ค๋ฃจ๋ฉด ๋๋ค.DebugFileLog.swift:17-21์ฃผ์์devicectl --domain-identifier dev.umc.product.debug๋ ์ค์ Bundle ID(com.umc.product)์ ๋ค๋ฅด๋ค. ์ค๊ธฐ๊ธฐ์์ ํ์ธ ํ ์ฃผ์์ ์ ์ ํ๋ ๊ฒ์ด ์ข๊ฒ ๋ค โ ๋ฌธ์์๋ ํด๋ฐฑ์ ๋ณ๊ธฐํด ๋๋ค.๐ ๋ฆฌ๋ทฐ ํฌ์ธํธ
"๊ทผ์ฒ์ ์๋ ์๋ ๊ธฐ๊ธฐ์์ ๊ฑฐ๋ฆฌ๋ฅผ ์ธก์ ํด ๋ช ํจ์ ์ฃผ๊ณ ๋ฐ์ ์๋๋ฅผ ์ ํํ ์ฐพ์ต๋๋ค."์ฌ์ฉ์์๊ฒ ๊ทธ๋๋ก ๋ ธ์ถ๋๋ ๋ฌธ์ฅ์ด๋ค. "์์น" ๋ฏธ์ฌ์ฉ / ๊ฑฐ๋ฆฌ ์ธก์ ๋ช ์ / ๋ชฉ์ ๋ช ์ ์๊ฑด์ ์ถฉ์กฑํ๋๋ฐ, ํํ์ด ๋ ๋์ ์ฌ์ง๊ฐ ์์ผ๋ฉด ์๊ฒฌ ์ฃผ์ธ์.โ Checklist
PR์ด ๋ค์ ์๊ตฌ ์ฌํญ์ ์ถฉ์กฑํ๋์ง ํ์ธํด์ฃผ์ธ์!!!