Closed acoutts closed 3 years ago
@acoutts It does not work for me. Can you help me to configure it?
@acoutts It does not work for me. Can you help me to configure it?
Sure, where is the issue?
The plugin works fine for Android. But if we want to flutter run the ios project we are receiving this error for the file FLTGoogleMlVisionPlugin.h:
` ...Debug-iphoneos/google_ml_vision/google_ml_vision.framework/Headers/FLTGoogleMlVisionPlugin.h:7:1: error: use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules @import MLKitVision; ^ .../Debug-iphoneos/google_ml_vision/google_ml_vision.framework/Headers/FLTGoogleMlVisionPlugin.h:16:26: error: expected a type
We have enabled modules C and Objective-C in our Target Build Settings, but it is still not working
It seems like I was able to fix it by replacing
@import MKKitVision
with
#import <MLKitVision/MLKitVision.h>
The official
firebase_ml_vision
package has been dead/unmaintained for months now. This was a very easy switch-out and everything seems to work as before.Thank you for creating this!