Closed felix0324324 closed 1 year ago
I assume this worked with an earlier version of realm than 0.8.0-rc
? Could you try running flutter clean
and then flutter pub cache repair
before you run again?
I assume this worked with an earlier version of realm than
0.8.0-rc
? Could you try runningflutter clean
and thenflutter pub cache repair
before you run again?
I had try 0.7.0-rc, Not work "flutter pub" and "cache repair", Not work
Hi @felix0324324, This example (realm-dart/flutter/realm_flutter/example) has a path dependency to "realm" in the pubspec.yml. If you are using this dependency you first have to build the native library with CMake and building the source in realm-dart. This is too complicated.
If you just want to run and debug the example you have to remove:
realm:
path: ../
and then run flutter pub add realm
to add a dependency to the latest realm.
After that you can run and debug. the native binaries will be downloaded automatically.
If you have already done these steps, please let us know. We will keep trying to reproduce the issue.
You can also try some of our examples from realm-dart-samples repo. Please check if you will have the same issue with them?
I have no changes on coding just compile with the latest code version. But it got an Exception and I have no idea why
ArgumentError (Invalid argument(s): Failed to load dynamic library 'realm_dart': dlopen(realm_dart, 0x0001): tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRootrealm_dart' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/realm_dart' (errno=2), '/usr/lib/swift/realm_dart' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/realm_dart' (errno=2), '/usr/lib/swift/realm_dart' (errno=2, not in dyld cache), '/Users/alvis/Library/Developer/CoreSimulator/Devices/3C0D9DC7-4C58-444F-B50D-662A3C4E3462/data/Containers/Bundle/Application/B2A1468C-B5B9-48B7-86C2-A4C4B7A5D47E/Runner.app/Frameworks/realm_dart' (errno=2), '/Users/alvis/Library/Developer/CoreSimulator/Devices/3C0D9DC7-4C58-444F-B50D-662A3C4E3462/data/Containers/Bundle/Application/B2A1468C-B5B9-48B7-86C2-A4C4B7A5D47E/Runner.app/Frameworks/realm_dart' (errno=2), '/Users/alvis/Library/Developer/CoreSimulator/Devices/3C0D9DC7-4C58-444F-B50D-662A3C4E3462/data/Containers/Bundle/Application/B2A1468C-B5B9-48B7-86C2-A4C4B7A5D47E/Runner.app/Frameworks/realm_dart' (errno=2), '/usr/lib/realm_dart' (errno=2, not in dyld cache), 'realm_dart' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/realm_dart' (errno=2))
Simulator Version iPhone 14 Pro, ios 16.2
Repro steps
Just compile and do nothing
Version
Channel stable, 3.3.9
What Realm SDK flavor are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
macOS 13.2
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response