[Refactor] SwiftData에서 CoreData로 마이그레이션 - #5
Open
Siwon-L wants to merge 11 commits into
Open
Conversation
Siwon-L
force-pushed
the
feature/migrating-from-Swiftdata-to-Coredata
branch
from
January 15, 2026 08:25
4fa16c4 to
0765761
Compare
Siwon-L
force-pushed
the
feature/migrating-from-Swiftdata-to-Coredata
branch
from
January 21, 2026 02:32
512b6e7 to
ac7b7e0
Compare
Siwon-L
force-pushed
the
feature/migrating-from-Swiftdata-to-Coredata
branch
from
January 21, 2026 02:34
ac7b7e0 to
7440d18
Compare
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.
작업 내용
배경
구현 상세
기존 SwiftData와 동일한 형태의 Data Model을
.xcdatamodel파일을 통해 CoreData로 구현로컬에 이미 저장된 데이터를 손실 없이 사용할 수 있도록 SwiftData 프레임워크로 사용했던 데이터 파일을 그대로 CoreData 프레임워크로 사용
CoreData로 Data Model이 변경되면서 발생하는 컴파일 에러 및 런타임에 발생하는 에러와 버그 해결
CoreData Data Model에서 기존에 저장되어 있는 배열값을 읽어오지 못하는 문제가 발생해 [NSNumber] 타입으로 읽어와 [Int] 타입으로 타입 변환해서 사용
성과