-
Notifications
You must be signed in to change notification settings - Fork 90
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
Upgrade error: Realm SDK package version does not match the native library version #1127
Comments
@mnimer Hi Mike I have failed to recreate this issue. A simple Could you try to remove your platform projects, and then re-create them with: rm -rf android/ ios/ linux/ macos/ windows/
flutter create . --platforms=android,ios,linux,macos,windows or whatever platforms you support. |
'flutter create . --platforms=...' Was the trick! upgrade alone did not fix it but when I deleted the platform folders and rebuilt the macos platform it started working. Thank you. |
This broke again when I turned off macos sandbox mode <key>com.apple.security.app-sandbox</key>
<false/> Error:
|
This is very surprising?! Does recreating the platform project still help? BTW, you don't need to disable the security sandbox, as long as you add the entitlement to use the network, it will work: ...
<dict>
...
<key>com.apple.security.network.client</key>
<true/>
</dict>
... |
If you run: find ~/ -name librealm_dart.dylib How many paths do you find, and if you feel comfortable doing so, could you share them here? |
Needed to turn off sandbox mode for another reason. Building a desktop file manager and couldn't access some images. I did try to rebuild the platform and that did not fix it this time. Here are the paths:
|
Could you try to remove
and report back? |
That seems to have done the trick, it is working now. |
Same happened to me while trying to move from Here's what worked for me:
|
What happened?
Received this runtime error after trying to upgrade:
Realm SDK package version does not match the native library version (0.10.0+rc != 0.8.0+rc). This is likely a bug in the Realm SDK - please file an issue at https://github.com/realm/realm-dart/issues
Upgraded 0.8.0 to 0.10.0 following the steps on this page
https://www.mongodb.com/docs/realm/sdk/flutter/install/#update-package-version
I have already tried running:
Repro steps
Start with an existing project on ^0.8.0+rc and upgrade the project to 0.10.0, following these instructions: https://www.mongodb.com/docs/realm/sdk/flutter/install/#update-package-version
run flutter clean & build
Version
^0.8.0+rc
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
mac 13.1
Code snippets
final config = Configuration.local(
[Apps.schema, FileCollection.schema, Folder.schema, File.schema],
schemaVersion: 1, shouldDeleteIfMigrationNeeded: true);
database = Realm(config);
Stacktrace of the exception/crash you're getting
No response
Relevant log output
The text was updated successfully, but these errors were encountered: