Coder Social home page Coder Social logo

Comments (8)

luiscib3r avatar luiscib3r commented on May 9, 2024

Try with tflite_flutter: ^0.10.0

from flutter-tflite.

PaulTR avatar PaulTR commented on May 9, 2024

@supratikkoley Any luck with this? Going to close out later today.

from flutter-tflite.

DaDummy avatar DaDummy commented on May 9, 2024

I am facing the same issue. The app works fine when run from XCode, but when creating an ipa via flutter build ipa, the ffi fails to load any native symbols from the C library.

from flutter-tflite.

DaDummy avatar DaDummy commented on May 9, 2024

Just a wild guess, but did you follow the best practice for embedding native code using ffi?

https://docs.flutter.dev/platform-integration/ios/c-interop#open-source-third-party-library

The line declaring the source_files appears to be commented out in the project's podspec.

from flutter-tflite.

DaDummy avatar DaDummy commented on May 9, 2024

To be clear: I am facing this issue with tflite_flutter: ^0.10.0

from flutter-tflite.

DaDummy avatar DaDummy commented on May 9, 2024

Looks like this is an instance of flutter/flutter#62666 which was resolved by documenting a workaround: https://docs.flutter.dev/platform-integration/ios/c-interop#stripping-ios-symbols

Solution:

  1. In Xcode, go to Target Runner > Build Settings > Strip Style.
  2. Change from All Symbols to Non-Global Symbols.

from flutter-tflite.

DaDummy avatar DaDummy commented on May 9, 2024

I'd recommend adding this to the Setup steps in readme and on pub.dev

from flutter-tflite.

PaulTR avatar PaulTR commented on May 9, 2024

Updated in #76. Will aim to publish 0.10.1 today, which will include updating the readme on pub.dev.

Thanks for tracking that down!

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.