You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dylibs need to be compiled to different target architectures and OSes.
And they need to be bundled the right way in Flutter.
If you have C/C++ source code, then please take a look at flutter create --template=plugin_ffi --platform=android,ios <name>.
If you have precompiled libraries, then you need to modify the Gradle/CocoaPods/CMake files generated in the plugin_ffi template.
Currently packages cannot be Dart standalone and work for Flutter. dart-lang/sdk#50565 tracks our effort to solve this.
Hi,
I am working on a flutter application using an android emulator.
I have used the following dart code to load the ".dylib" file.
var libraryPath = path.join(
Directory.current.path, 'primitives_library', 'TestLibrary.dylib');
final dylib = DynamicLibrary.open(libraryPath);
but when I build the project it gives the following error.
DynamicLibrary.open error: Invalid argument(s): Failed to load dynamic library (126)
Please suggest any solution to load the ".dylib" library using an ios emulator.
Please suggest how to create a dylib library to use in the flutter app on the ios platform.
The text was updated successfully, but these errors were encountered: