Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building on IOS #18

Open
techno-disaster opened this issue Jan 7, 2020 · 1 comment
Open

Error when building on IOS #18

techno-disaster opened this issue Jan 7, 2020 · 1 comment

Comments

@techno-disaster
Copy link
Contributor

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
Copy link
Owner

shaqian commented Jan 10, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants