알아두면 유용할 것
아카이빙 할 때, 갑자기 swiftRealm 오류
순진이
2022. 11. 3. 16:44
어제 업데이트 날이었는데, 갑자기 안돼서 별 짓을 다했는데 (architecture 설치, excluded Architectures 설정 등)
오류 메시지를 자세히 읽어보니, RealmSwift에만 문제가 있는 듯 함
1. Realm swift 재설치 -> 해결 안됨
2. xcode Downgrade
계속 찾아보니, realm에 배포 버전이 따로 있었음. (아래 링크에서 realm 버전별 xcode 버전 나옴)
https://github.com/realm/realm-swift/releases
Releases · realm/realm-swift
Realm is a mobile database: a replacement for Core Data & SQLite - realm/realm-swift
github.com
나는 어제 xcode 업데이트를 하여 xcode는 14.1 버전이었는데, 해당 realm의 release 버전은 xcode 14.0.1이었음.
기존의 xcode를 삭제하고, 다시 xcode를 14.0.1로 다운그레이드하니 문제없이 아카이빙이 가능했음.
⬇️ 다른 버전의 xcode 다운로드
https://developer.apple.com/download/all/?q=xcode
로그인 - Apple
idmsa.apple.com