일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 알고리즘
- algorism
- 맥북
- 코딩
- 아이폰 해상도
- error
- Swift
- ios
- goormtest
- 맥용
- 네이버알고리즘
- code
- 네이버
- 구름알고리즘
- 아이폰 비율
- codemonkey
- 코딩테스트
- objective-c
- 네이버구름
- Cordova
- java
- 헬스
- android
- Object-c
- iPhone
- 안드로이드
- codility
- 구름TEST
- 아이폰
- naver
- Today
- Total
그래오늘은이거야
swift realm @objc dynamic var error 본문
Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=10 "Migration is required due to the following errors:
- Property 'Airing.onGoing' has been added.
- Property 'PvrAiring.onGoing' has been added.
- Property 'PvrAiring.onGoingStatus' has been removed.
- Property 'Airing.onGoingStatus' has been removed." UserInfo={NSLocalizedDescription=Migration is required due to the following errors:
- Property 'Airing.onGoing' has been added.
- Property 'PvrAiring.onGoing' has been added.
- Property 'PvrAiring.onGoingStatus' has been removed.
- Property 'Airing.onGoingStatus' has been removed., Error Code=10}: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-902.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 184
2018-06-29 14:22:02.765986+0900 WatchAir[26915:11744822] Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=10 "Migration is required due to the following errors:
- Property 'Airing.onGoing' has been added.
- Property 'PvrAiring.onGoing' has been added.
- Property 'PvrAiring.onGoingStatus' has been removed.
- Property 'Airing.onGoingStatus' has been removed." UserInfo={NSLocalizedDescription=Migration is required due to the following errors:
- Property 'Airing.onGoing' has been added.
- Property 'PvrAiring.onGoing' has been added.
- Property 'PvrAiring.onGoingStatus' has been removed.
- Property 'Airing.onGoingStatus' has been removed., Error Code=10}: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-902.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 184
위와 같은 오류가 발생하면
지금 개발중인 앱을 아이폰에서 삭제 후 다시 시작하면 문제 없이 기동됩니다.
schema 에 저장되어있는 파일을 변경/추가 할때 DB가 꼬이는 문제가 있습니다.
잘 생각해보면 realm 이 object-c 에서 사용되던 coredata 와 비슷하단점을 2일이 지나고서 인식했음..
그래서 구글링 검색결과 DB column값을 변경하려면 아이폰에 설치되어있는 앱을 지우고 새로 빌드하면 제대로 실행됨.
'세상 개발 > IOS(Swift)' 카테고리의 다른 글
Codility 02. OddOccurrencesInArray (Swift) 코딩테스트(알고리즘)CodeTest (0) | 2019.07.01 |
---|---|
Codility 01. BinaryGap (Swift) 코딩테스트(알고리즘)CodeTest (0) | 2019.07.01 |
Swift4.2 IOS12 xcode10 Realm3.1 버전 error 잡기 RealmSwift Module compiled with Swift 4 cannot be imported in Swift 4.2 (0) | 2018.10.17 |
R.Swift 설치 및 실행 방법 (0) | 2018.03.13 |
아이폰x, 아이폰8, 아이폰8plus 해상도 화면 크기 및 비율 (0) | 2017.09.28 |