-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [mediapipe_text] Failed to load dynamic library 'arm64_libtext.framework/arm64_libtext' on IOS emulator #55
Comments
And Android App Bundle also failed. Because null check operator used on a null value in build.dart file for downloading the sdks from cloud storage.
Therefore, I needed to add this line of code for the null check.
additional logs from the IOS
|
Do you have an Intel or ARM Mac? If you have an Intel Mac, the error is probably that the ARM SDK is being selected; yet the system believes mobile devices always imply ARM. This is a known issue, as we haven't yet gotten around to recompiling the iOS and Android SDKs for Intel architectures. Only developers using mobile simulators on Intel Macs should hit this issue. |
I don't think the issue is related to the architecture support. because If you see my flutter doctor log, you can see that I am using an ARM Mac. [✓] Flutter (Channel master, 3.23.0-4.0.pre.1, on macOS 14.5 23F79 |
Apologies - I missed that you're on ARM. The issue appears to be this out of the crash:
I'll talk to the relevant folks internally about the right way to handle this. For Googlers: b/345243192 |
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
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<…>
The text was updated successfully, but these errors were encountered: