Skip to content

🐛 [mediapipe_text] Failed to load dynamic library 'arm64_libtext.framework/arm64_libtext' on IOS emulator #55

@youngjun-k

Description

@youngjun-k

I tested the mediapipe_text with the following instructions from the readme.
It works perfectly on macOS and Android emulators. However, all three of the models do not work on the iOS emulator. and they generate the same error all across.

If I run the example app it says that it failed to load dynamic library
'text.framework/text'
but if I run on my project it requires this dynamic library
'arm64_libtext.framework/arm64_libtext'

flutter doctor

[✓] Flutter (Channel master, 3.23.0-4.0.pre.1, on macOS 14.5 23F79
    darwin-arm64, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK
    version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome
      executable.
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (3 available)
[✓] Network resources

Here are the error logs.

[ERROR:flutter/runtime/dart_isolate.cc(1291)] Unhandled exception:
Invalid argument(s): Couldn't resolve native function 'text_embedder_create' in
'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' : Failed to load
dynamic library 'arm64_libtext.framework/arm64_libtext': Failed to load dynamic library
'arm64_libtext.framework/arm64_libtext': dlopen(arm64_libtext.framework/arm64_libtext, 0x0001): tried:
'/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS
17.4.simruntime/Contents/Resources/RuntimeRootarm64_libtext.framework/arm64_libtext' (no such file),
'/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS
17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/arm64_libtext.framework/arm64_libtext' (no such
file), '/usr/lib/swift/arm64_libtext.framework/arm64_libtext' (no such file, not in dyld cache),
'/Users/youngjun/Library/Developer/CoreSimulat<…>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions