flutter_realtime_detection
flutter_realtime_detection copied to clipboard
Error when building on IOS
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
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