Realmで「new」というWordを使うといろいろな理由で禁止されている。その為リファクタリングで
newというpropertyをリネームしました。
しかし、アプリを削除して再ビルドしてもmigrationのエラーが発生する。
しかも発生するタイミングが起動時ではなく全く関係ないカメラ画面を立ち上げたときに発生する。
当アプリはバーコードを読み取る際にカメラ画面が立ち上がります。バーコードを読み取った直後に落ちます。
因みに読み取ったバーコードデータにRealmは一切使用していません。
xcodeのキャッシュも削除
2017-04-07 14:43:39.981812+0900 kakac2[10649:2181584] fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=10 "Migration is required due to the following errors: - Property 'NewsRealm.itemStatus' has been added. - Property 'NewsRealm.newItemStatus' has been removed." UserInfo={NSLocalizedDescription=Migration is required due to the following errors: - Property 'NewsRealm.itemStatus' has been added. - Property 'NewsRealm.newItemStatus' has been removed., Error Code=10}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-802.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 182
Xcode8.3
Swift3
Realm (2.4.4)
RealmSwift (2.4.4)
で起こっています。
謎すぎて解決できず。
ご教授よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。