gtbluesky / onnxruntime_flutter

A flutter plugin for OnnxRuntime provides an easy, flexible, and fast Dart API to integrate Onnx models in flutter apps across mobile and desktop platforms.
MIT License
54 stars 13 forks source link

Run on macOS failed: "ld: library 'onnxruntime.1.15.1' not found" #12

Closed ryanhoo closed 2 months ago

ryanhoo commented 3 months ago

Run on Android & iOS and it works fine. But macOS failed as it says:

Launching lib/main.dart on macOS in debug mode...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001429982229801E }
{ platform:macOS, arch:x86_64, id:00006000-001429982229801E }
ld: library 'onnxruntime.1.15.1' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **

Exception: Build process failed
ryanhoo commented 2 months ago

Find libonnxruntime.1.15.1.dylib under macos folder and put it in blobs under my project, rerun on mac and it worked!