-
Notifications
You must be signed in to change notification settings - Fork 128
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
Issue with TensorflowLite Interpreter in IOS release build #96
Comments
can you maybe show more code? |
@gregorscholz This where I am getting the issue. Now i am getting this Error in catch: |
Did you double check if the model is correct? Maybe there is some error with the model? |
It is working fine on Android and IOS (debug) . The issue only occurs in the build i download from test flight for IOS. |
Oh sorry, yea, mb. Edit: |
Thanks for the links. shaqian/flutter_tflite#171 (comment): tensorflow/tensorflow#49897 (comment): |
Was a solution found to this? I’m facing the same issues. Works fine in debug but release doesn’t on TestFlight |
Not yet. Did you try the below solution is any one of this works for you? |
@shaheer20 Did you follow this step: https://github.com/tensorflow/flutter-tflite#android--ios Specifically:
I had a similar issue recently and that was the solution. |
@kvanry Thanks it works fine by changing All Symbols to Non-Global Symbols. But It's not working on iPhone 7. |
@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? |
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 MacBook Pro Apple M1 Pro Sonoma 14.3 (23D56) I also tried adding frameworks manually. Asset validation failed What am I doing wrong in my life? :) |
For this issue issue you need to change XCode settings under the Target Runner. Follow the below 2 simple steps and your app will start to working in released mode also. Step 1: In Xcode, go to Target Runner > Build Settings > Strip Style |
Hi @shaheer20 , Have you find our solution for your issue? I am facing same issue.Hello @cs-milan-sadariya, You provided solution not working.I am still facing "Failed to lookup symbol 'TfLiteModelCreate': dlsym(RTLD_DEFAULT, TfLiteModelCreate): symbol not found" for IOS |
@SantroTechneAi |
same problem in release from TestFlight |
it is working
|
I am passing the tflite file to the interpreter but it returns nothing. This is only happening when I download the IOS build from a test flight. Running an app with IDE works fine.
tfl.Interpreter? interpreter = await tfl.Interpreter.fromAsset('assets/config/mobilefacenet.tflite');
I have also tried
tfl.Interpreter.fromFile(File(path));
But this also doesn't return anything.
How I am testing: I have added a stack view with a Text widget on that and added logs into a string and print the text to check which line is executed. I am not getting any error even if I add this interpreter into try-catch. I have added a text before assigning the value to the interpreter and after the value is assigned to the interpreter only the before-added text shows not after one. This is why I am assuming it got stuck while assigning and didn't return anything.
The text was updated successfully, but these errors were encountered: