Giter Site home page Giter Site logo

Comments (14)

Uijeong97 avatar Uijeong97 commented on August 17, 2024 2

I have same problem. I tried many solutions, but I can't solve it..

from tflite_flutter_plugin.

am15h avatar am15h commented on August 17, 2024

You can change the rename the TensorFlowLiteC.framework folder to TFLiteFlutter.framework and similarly change https://github.com/am15h/tflite_flutter_plugin/blob/master/ios/tflite_flutter.podspec#L20 and https://github.com/am15h/tflite_flutter_plugin/blob/master/ios/tflite_flutter.podspec#L27 as well.

from tflite_flutter_plugin.

ricardochen avatar ricardochen commented on August 17, 2024

Hi, I did what you recommended but now I'm getting duplicate symbols, for example:
duplicate symbol '_TfLiteTensorDataFree' in:
/Users/ricardochen/Documents/GitHub/product_recognition/tflite_flutter_plugin-master/ios/TFLiteC.framework/TFLiteC(common_16c5e108d1d1bcacc04136cd10a98b4c.o)
/Users/ricardochen/Documents/GitHub/product_recognition/productrecognition/ios/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC(c_api_internal.o)
duplicate symbol '_TfLiteTensorRealloc' in:
/Users//Documents/GitHub//tflite_flutter_plugin-master/ios/TFLiteC.framework/TFLiteC(common_16c5e108d1d1bcacc04136cd10a98b4c.o)
/Users//Documents/GitHub//imageclasfication/ios/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC(c_api_internal.o)

from tflite_flutter_plugin.

am15h avatar am15h commented on August 17, 2024

firebase_ml_custom uses platform channels as compared to tflite_flutter using dart:ffi. So this error is a bit strange.
I will need to take a deeper look to find a possible solution of using these two together.
Moreover, can you please elaborate on why you want to use these together. Probably in future we can plan to support such use cases with tflite_flutter itself

from tflite_flutter_plugin.

ricardochen avatar ricardochen commented on August 17, 2024

firebase_ml_custom is for downloading custom models from firebase, which in the dependencies have firebase packages which have tensorflowtile.framework as a dependency.

from tflite_flutter_plugin.

mrka124 avatar mrka124 commented on August 17, 2024

@ricardochen how do you import package as local plugin to work around this issue?

from tflite_flutter_plugin.

acanturgut avatar acanturgut commented on August 17, 2024

Hey everyone! Any solution for this issue!

from tflite_flutter_plugin.

MATTYGILO avatar MATTYGILO commented on August 17, 2024

Has anyone fixed this yet

from tflite_flutter_plugin.

Aminatak avatar Aminatak commented on August 17, 2024

I'm facing the same issue, any update ?

from tflite_flutter_plugin.

fnoceda avatar fnoceda commented on August 17, 2024

Same problem here with tflite_flutter: ^0.9.0, firebase_core ^1.3.0, firebase_messaging ^10.0.3, any solution? please

from tflite_flutter_plugin.

fnoceda avatar fnoceda commented on August 17, 2024

You can change the rename the TensorFlowLiteC.framework folder to TFLiteFlutter.framework and similarly change https://github.com/am15h/tflite_flutter_plugin/blob/master/ios/tflite_flutter.podspec#L20 and https://github.com/am15h/tflite_flutter_plugin/blob/master/ios/tflite_flutter.podspec#L27 as well.

I try the @am15h solution, and clear my project, when i run pod install work, but when i build in xcode i get this error:
ld: framework not found TFLiteFlutter
any idea?

from tflite_flutter_plugin.

fnoceda avatar fnoceda commented on August 17, 2024

Finaly I make a empty project, and use these versions, I know this isn't a god practice, but i have a short dead line for this project, for now, work
tflite_flutter: ^0.8.0
firebase_core: 1.1.1
firebase_messaging: 9.1.0
google_ml_kit: ^0.5.1

from tflite_flutter_plugin.

mrka124 avatar mrka124 commented on August 17, 2024

same as @fnoceda
Has anyone fixed this yet?

from tflite_flutter_plugin.

Mmisiek avatar Mmisiek commented on August 17, 2024

Same problem after adding TensofFlowLiteC.framewrk to pub-cache:

michal@Michals-MacBook-Pro~/Development/pest_scope/ios $ pod install
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_crashlytics: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_ml_custom: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_remote_config: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '8.7.0' defined in 'firebase_core'
Downloading dependencies
Installing TensorFlowLiteC (2.7.0)
Installing TensorFlowLiteSwift (2.7.0)
[!] The 'Pods-Runner' target has frameworks with conflicting names: tensorflowlitec.framework.

from tflite_flutter_plugin.

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.