flutter_realtime_detection icon indicating copy to clipboard operation
flutter_realtime_detection copied to clipboard

Error when building on IOS

Open techno-disaster opened this issue 5 years ago • 1 comments

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.

techno-disaster avatar Jan 07 '20 11:01 techno-disaster

@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

shaqian avatar Jan 10 '20 06:01 shaqian