기록하는 습관을 통해 성장하자.
- [iOS/Xcode] 아카이브했을 때 발생하는 UIInterfaceOrientation 이슈 에러 내용: Asset validation failed Invalid bundle. The “UIInterfaceOrientationPortrait” orientations were provided for the UISupportedInterfaceOrientations Info.plist key in the {Project Bundle Identifier} bundle, but you need to include all of the “UIInterfaceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight” ori.. 2024.03.08
- Publisher 깊게 보기 Publisher의 종류 한눈에 보기Combine에서 쓰는 Publisher는 크게 세 부류로 나뉨.분류 예시 특징기본 제공 PublisherJust, Empty, Fail, Future, Deferred한 번 정의되면 값이 정해져 있음외부 이벤트 PublisherURLSession.dataTaskPublisher, NotificationCenter.Publisher, Timer.publish시스템 이벤트에서 값이 흘러나옴수동 발행 PublisherPassthroughSubject, CurrentValueSubject, @Published코드에서 send()로 값을 직접 주입Apple이 기본 제공하는 Publisher들Just — 값 하나 내보내고 끝let publisher = Just("Hello")/.. 2026.05.13
- Combine이란? — 핵심 개념 3가지 세 개의 역할만 기억하면 됨.Combine의 모든 구조는 세 가지 역할로 설명됨.Publisher — 데이터를 내보내는 쪽Subscriber — 데이터를 받는 쪽Operator — 중간에서 데이터를 변환하거나 필터링하는 쪽아무리 복잡한 Combine 코드도 결국 "누가 데이터를 만들고, 누가 중간에서 가공하고, 누가 최종적으로 받는가"로 분해됨.Publisher — "나 값 줄게"Publisher는 시간이 지남에 따라 값을 내보내는 프로토콜. 네트워크 응답이 될 수도 있고, 텍스트필드의 입력값이 될 수도 있고, 타이머의 틱이 될 수도 있음.Publisher가 내보낼 수 있는 건 두 가지뿐임.값(Output) — 0개 이상완료(Completion) — 정상 종료 또는 에러. 한 번 발생하면 더 이상 값을 .. 2026.04.08
- 왜 Combine인가? Combine의 필요성에 대해 기록합니다. Combine이란?네트워크 요청, 사용자 입력 등 언제 올지 모르는 데이터(비동기로 발생하는 이벤트)를 다루기 위한 비동기 처리가 필요함.Combine은 이 처리를 해결하기 위해 만든 프레임워크→ 여러 비동기 패턴들을 하나의 일관된 파이프라인으로 통합하는 프레임워크기존 방식의 한계Combine 이전에는 여러가지 방식들(Completion Handler, Delegate, Notification Center, KVO 등)을 사용하여 처리했었음.각각의 패턴에 장점이 있지만, 한 곳에 모이면 코드의 흐름을 따라가기가 어려워짐.어떤 이벤트가 어디서 시작되어 어디로 흘러가는지, 에러는 어느 시점에서 처리되는지 이 모든걸 머릿속에서 추적해야 함.콜백 중첩 문제흔한 예를 들.. 2026.03.25
- [iOS] Diffable DataSource Diffable DataSource 관련 내용을 기록합니다. 기존 DataSource 이슈*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Invalid update: invalid number of sections. The number of sections contained in the collection view after the update (10) must be equal to the number of sections contained in the collection view before the update (10), plus or minus the number of sections i.. 2024.06.14
-
[iOS] 타사 SDK 요구 사항 변경 예정
Upcoming third-party SDK requirements24년 5월 1일부터 앱스토어 커넥트에 제출되는 앱은 privacy manifest 가 제공되지 않으면 리젝됨.타사 SDK는 개발자나 사용자도 모르게 개인정보 보안을 취약하게 만들 수 있음.
2024.03.22