shaqian / flutter_tflite

Flutter plugin for TensorFlow Lite
https://pub.dartlang.org/packages/tflite
MIT License
631 stars 403 forks source link

Lexical or Preprocessor Issue (Xcode): 'TensorFlowLiteC.h' file not found #259

Open ngoanpv opened 2 years ago

ngoanpv commented 2 years ago

I have the error when running the project using this plugin? Any solution for this?

minhnhatvdl commented 2 years ago

The same problem for me. Anyone has a solution ?

felando1984 commented 2 years ago

Same problem + 1

vgtle commented 2 years ago

The solution is to set the version for tflite in the podfile/podfile.lock to 2.2.0. It looks like version 2.9.x is not supported yet by this flutter plugin

wojciechzahradnikdeviniti commented 1 year ago
target 'Runner' do
  use_frameworks!
  use_modular_headers!

  pod 'TensorFlowLiteC', '2.2.0'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

it works