Skip to content

Conversation

@wodud1107
Copy link
Collaborator

📌 관련 이슈

🥑 작업 요약

  • CodeConnectionView 클로저 비동기 수정

🛠️ 작업 내용

View

크래시가 발생한 부분을 확인해보면, 클로저 내에서 메모리 소유권에 대해 모호해지면서 앱이 크래시가 발생하게 됩니다. 이는 Release 최적화 단계에서 View 내부 Task가 생명주기가 잘못 계산되었기 때문입니다.

즉, CodeConnectionView에서 connectButton을 클릭하면 다음 뷰로 넘어가면서 뷰가 사라지니, 클로저에 대한 메모리 소유권이 모호해지게 됩니다.

또한, 아키텍쳐 적으로도 View가 비동기 작업임을 모르고 동작이 선언됨만을 ViewController나 ViewModel에 전달하여 비동기 서버 로직을 수행하는 것이 올바른 설계입니다.

따라서, CodeConnectionView 내부의 onConnectTap 클로저를 동기로 변경하여 문제가 해결될 수 있었습니다.

🧪 테스트 방법

  • 변경된 QR을 다운하거나 Xcode에서 릴리즈 스킴을 빌드하여도 좋습니다.

✅ 체크리스트

  • 빌드 및 실행 테스트를 완료했나요?
  • 불필요한 주석 및 Print 문을 제거했나요?
  • 코딩 컨벤션을 준수했나요?

@wodud1107 wodud1107 added this to the 프로토타입 milestone Dec 19, 2025
@wodud1107 wodud1107 self-assigned this Dec 19, 2025
@wodud1107 wodud1107 added the 🐞 fix 버그 수정 label Dec 19, 2025
Copy link
Collaborator

@00yhsp 00yhsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

배포 시 connectButton 클릭 시 크래시 해결

3 participants