Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-2036

realm Provided schema version 0 is less than last set version 2.

      How frequently does the bug occur?

      Sometimes

      Description

      Randomly, without any changes to Realm, but from constantly rebuilding a project it will crash.

      The only solution is deleting the app from the simulator and then re-opening.

      The Realm models etc have not been changed. It usually happens every 30 rebuilds or so. It seems pretty consistent.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      RealmSwift/SwiftUI.swift:488: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=1 "Provided schema version 0 is less than last set version 2." UserInfo={Error Name=InvalidSchemaVersion, NSLocalizedDescription=Provided schema version 0 is less than last set version 2., Error Code=1}
      

      Can you reproduce the bug?

      Sometimes

      Reproduction Steps

      Rebuild the project multiple times, like at least 30 times and rebuild fast and sometimes kill a rebuild with another rebuild.

      Version

      latest

      What Atlas Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      latest

      Build environment

      Xcode version: ...
      Dependency manager and version: ...
      latest everything

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: