shaqian / flutter_realtime_detection

Real-time detection demo for Flutter tflite plugin
843 stars 302 forks source link

Error when building on IOS #18

Open techno-disaster opened 4 years ago

techno-disaster commented 4 years ago

App successfully builts on Android. but get this error on IOS Code : https://github.com/Techno-Disaster/PlushieMate Error output from Xcode build: ↳ BUILD FAILED

Xcode's output: ↳ === BUILD TARGET tflite OF PROJECT Pods WITH CONFIGURATION Debug === /usr/local/bin/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-1.0.4/ios/Classes/TflitePlugin.mm:19:10: fatal error: 'tensorflow/lite/kernels/register.h' file not found

include "tensorflow/lite/kernels/register.h"

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1 error generated.
shaqian commented 4 years ago

@Techno-Disaster

Please check if the tensorflow header files are located in "tensorflow/lite/kernels/register.h"? In earlier versions the headers are in "tensorflow/contrib/lite/kernels/register.h".

You can use CONTRIB_PATH to toggle the path. Uncomment //#define CONTRIB_PATH: https://github.com/shaqian/flutter_tflite/blob/master/ios/Classes/TflitePlugin.mm#L1

Thanks, Qian