Open seekcx opened 3 years ago
Hey, what platform are you trying to run on and are you using this plugin or the dargon2_flutter plugin?
It seems like you have a flutter app. If so, you should be using the dargon2_flutter plugin as the normal C library loading doesn't work with mobile devices and flutter apps need to handle library loading differently.
Closing due to inactivity. Please reopen if needed
Hey @tmthecoder, thanks a lot for the library but I am also facing the same error when building to the iOS simulator running on MacOS using Visual Studio Code. The same code works on Windows for the Android simulator but I'm getting this error message on the MacOS.
Here is my flutter doctor
Thank you!
@ThamMK What is the deploy platform? Are you deploying to macOS or building an iOS app on a Mac device? Either way, the plugin should be supported on all platforms. If you encounter a lookup error, try initializing it like it mentions on the README for the isolate-specific initialization or the pre Flutter 2.8
I am building a flutter 3.0 app onto the iPhone simulator on a Mac device. I have tried initializing at the main function but I'm still getting the error.
Is this app using Swift or Objective C?
It's using Swift
If you build for Android on that same Mac, does it work?
@ThamMK I was able to reproduce this after a bit of messing with Flutter & iOS Apps. I found the issue to be weird since it wasn't present prior to Flutter 3.
Though, my fix was adding: pod 'Argon2Swift'
then running a flutter pub get
and cd ios && pod install
. Can you verify that works for you?
Thanks for the fix, I'll give it a try when I have the chance to test it out as at the moment we have switched to a different argon2 package.
@ThamMK Any word on this? I'll close if not.
@tmthecoder Works for me
Works for me as well. Maybe this should be added to the installation instructions?
Great library, thank you for your contribution.
I encountered the following error when using it, what should I do?