Giter VIP home page Giter VIP logo

Comments (12)

kvanry avatar kvanry commented on May 22, 2024 4

@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.

gregorscholz avatar gregorscholz commented on May 22, 2024

can you maybe show more code?
it is hard to tell whats wrong from this snippet

from flutter-tflite.

shaheer20 avatar shaheer20 commented on May 22, 2024

@gregorscholz This where I am getting the issue.
Screenshot 2023-06-21 at 1 05 00 PM

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.

gregorscholz avatar gregorscholz commented on May 22, 2024

Did you double check if the model is correct? Maybe there is some error with the model?

from flutter-tflite.

shaheer20 avatar shaheer20 commented on May 22, 2024

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.

gregorscholz avatar gregorscholz commented on May 22, 2024

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.

shaheer20 avatar shaheer20 commented on May 22, 2024

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.

peazz avatar peazz commented on May 22, 2024

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.

shaheer20 avatar shaheer20 commented on May 22, 2024

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.

shaheer20 avatar shaheer20 commented on May 22, 2024

@kvanry Thanks it works fine by changing All Symbols to Non-Global Symbols. But It's not working on iPhone 7.

from flutter-tflite.

sarthakydv avatar sarthakydv commented on May 22, 2024

@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.

denis-kolkov avatar denis-kolkov commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.