Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to migrate from 10.46.0 to 10.54.1 #8731

Open
ppamorim opened this issue Dec 13, 2024 · 1 comment
Open

Unable to migrate from 10.46.0 to 10.54.1 #8731

ppamorim opened this issue Dec 13, 2024 · 1 comment

Comments

@ppamorim
Copy link

ppamorim commented Dec 13, 2024

How frequently does the bug occur?

Always

Description

We compile the xcframework by ourselves, we use submodules to get the project source code. We tried to update the current version 10.46.0 to 10.54.1 but it crashes in the runtime. I will keep trying to find the version that broke the history schema.

At least downgrading from 10.54.1 back to 10.46.0 is non destructive (as per it's not changing anything in the realm file). So rollbacks are possible.

Migrations working:

  • 10.46.0 -> 10.47.0 -> 10.48.1
  • 10.46.0 -> 10.49.3

Stacktrace & log output

Error Domain=io. realm Code=15 "History schema version not consistent" UserInfo={Error Name=IncompatibleSession,
NSLocalizedDescription History schema version not consistent, Error Code=15)

Can you reproduce the bug?

Always

Reproduction Steps

  • git clone the realm repository, run cd realm-cocoa and git checkout 6b1b7a8 to get the version 10.46.0
  • run ./build.sh xcframework ios catalyst
  • drag the generated xcframework to your project, compile the app and use Realm as normal
  • run cd realm-cocoa and git checkout v10.54.1 to get the version 10.54.1
  • run rm -rf build and ./build.sh xcframework ios catalyst
  • drag the generated xcframework to your project and replace the current one, compile the app and run, it should silently crash.

Version

10.54.1, v10.54.0

What Atlas Services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

None

Build environment

Xcode version: 15.4
Swift version: 5.10
Dependency manager and version: None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants