Comments (12)
@shaheer20 Did you follow this step: https://github.com/tensorflow/flutter-tflite#android--ios
Specifically:
When creating a release archive (IPA), the symbols are stripped by Xcode, so the command flutter build ipa may throw a Failed to lookup symbol ... symbol not found error. To work around this:
In Xcode, go to Target Runner > Build Settings > Strip Style
Change from All Symbols to Non-Global Symbols
I had a similar issue recently and that was the solution.
from flutter-tflite.
can you maybe show more code?
it is hard to tell whats wrong from this snippet
from flutter-tflite.
@gregorscholz This where I am getting the issue.
Now i am getting this Error in catch:
'error while loading invalid arguments(s): Failed to lookup symbol 'TfLiteModelCreate': dlsym(RTLD_DEFAULT, TfLiteModelCreate): symbol not found'
from flutter-tflite.
Did you double check if the model is correct? Maybe there is some error with the model?
from flutter-tflite.
It is working fine on Android and IOS (debug) . The issue only occurs in the build i download from test flight for IOS.
from flutter-tflite.
Oh sorry, yea, mb.
I think i've read some time back someone had also problems with ios release build while it worked in debug.
I will try to find it
Edit:
Maybe one of those can help
shaqian/flutter_tflite#171 (comment)
tensorflow/tensorflow#49897 (comment)
from flutter-tflite.
Thanks for the links.
shaqian/flutter_tflite#171 (comment):
This is showing how can i load the model. I don't have any issue with loading the model it just happens when I pass model to Interpreter. I have tried to get the model into a file and check the size that shows I am getting the right file and there is no issue in getting the file.
tensorflow/tensorflow#49897 (comment):
This example shows an error while compiling I only get an error when I run the app on an IOS device in release (From test flight).
from flutter-tflite.
Was a solution found to this? I’m facing the same issues. Works fine in debug but release doesn’t on TestFlight
from flutter-tflite.
Not yet. Did you try the below solution is any one of this works for you?
shaqian/flutter_tflite#171 (comment)
tensorflow/tensorflow#49897 (comment)
from flutter-tflite.
@kvanry Thanks it works fine by changing All Symbols to Non-Global Symbols. But It's not working on iPhone 7.
from flutter-tflite.
@PaulTR FireStore recommends statically linked libraries, is there a plan to make a more robust fix for this for better integration with other google products?
from flutter-tflite.
Hello. I have a similar problem in 2024. Everything works in the debug version, but the release version does't work. Xcode does't add the framework to the ipa file.
I'm using the latest version of tflite_flutter: ^0.10.4
Options:
Strip Style = Non-Global Symbols
Strip Linked Product = No
MacBook Pro Apple M1 Pro Sonoma 14.3 (23D56)
Xcode Version 15.2 (15C500b)
I also tried adding frameworks manually.
They are added to the ipa package, but the package cannot be installed or uploaded to TestFly.
Asset validation failed
Invalid Bundle. The bundle Runner.app/Frameworks/TensorFlowLite.framework does not support the minimum OS Version specified in the Info.plist. (ID: 8c2faa9d-72b6-4024-b1b2-4849a7aa2afe)
What am I doing wrong in my life? :)
Thanks in advance for your help.
from flutter-tflite.
Related Issues (20)
- Unable to find `TfLiteXNNPackDelegateCreate` Symbol on Windows Flutter Project HOT 3
- Bad State on Resize Input Tensor
- [Feature Request] Video classification example HOT 2
- Unable to find example models HOT 2
- Yolo v5 support HOT 5
- Has anyone achieved using yolov8 with this package? HOT 1
- [!] No podspec found for `flutter_tflite` in `.symlinks/plugins/flutter_tflite/ios` HOT 7
- [Feature] support string tensors as output HOT 2
- [Proposal] Separate packages for the TF Lite binaries to allow the user to select what they need
- Incompatibility tflite in "live_object_detection_ssd_mobilenet" HOT 21
- Issues with either Float32 or shape of output
- Not able to run the model directly on image
- Support for Hexagon Delegate?
- Cannot get yamnet features in flutter
- E/flutter (30995): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Output object shape mismatch, interpreter returned output of shape: [1, 84, 8400] while shape of output provided as argument in run is: [8400, 4] HOT 2
- The inference speed using the old version is 5-8 times faster than the latest version HOT 7
- null check operator used on a null value HOT 1
- IOS release version does't work HOT 2
- Using GPU for tflite
- Model far less accurate when testing with example code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-tflite.