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

Example app won't build on iOS #57

Closed
kenthinson opened this issue Sep 18, 2019 · 2 comments
Closed

Example app won't build on iOS #57

kenthinson opened this issue Sep 18, 2019 · 2 comments

Comments

@kenthinson
Copy link

kenthinson commented Sep 18, 2019

`Launching lib/main.dart on Kent Hinson’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: L2F5C82287
Xcode build done. 1.8s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

=== BUILD TARGET image_picker OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/kent/Desktop/mlTest/flutter_tflite/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.
Could not build the precompiled application for the device.

Error launching application on Kent Hinson’s iPhone.

`

@shaqian
Copy link
Owner

shaqian commented Sep 19, 2019

Hi Kent,

Can you check if the tensorflow header files are located in "tensorflow/lite/kernels/register.h"? I know 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

@kenthinson
Copy link
Author

@shaqian That worked thanks. You might consider adding that to the documentation https://github.com/shaqian/flutter_tflite/blob/master/example/README.md. It might confuse others too :) thanks again.

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