flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

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

Open ngoanpv opened this issue 3 years ago • 4 comments

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

ngoanpv avatar Jun 27 '22 10:06 ngoanpv

The same problem for me. Anyone has a solution ?

minhnhatvdl avatar Aug 05 '22 13:08 minhnhatvdl

Same problem + 1

felando1984 avatar Aug 11 '22 22:08 felando1984

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

vgtle avatar Aug 26 '22 09:08 vgtle

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