shaqian/flutter_tflite

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

Opened this issue · 4 comments

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

The same problem for me. Anyone has a solution ?

Same problem + 1

vgtle commented

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

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