unable to load .dylib in flutter app on ios platform
Open
package:ffi
- Dominant language
- Dart
- Stars
- 275
- Forks
- 144
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 47
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.