NeutrinosPlatform / cordova-plugin-ml-text

Official site for the new plugin. Old Source hosted in bitbucket. See link
https://bitbucket.org/bhivedevs/cordova-plugin-ml-text
MIT License
14 stars 16 forks source link

iOS build error: "Use of undeclared identifier 'MLKTextBlock'" #15

Closed dragsirbu closed 1 year ago

dragsirbu commented 1 year ago

Hi, I'm getting this error when I try to build for iOS:

image

It used to work without any problem. I suspect that the error started appearing when I've updated to the latest version of cordova (11.1.0 in my case).

Env: Cordova 11.1.0 Cordova iOS 6.1.1

rpinto78 commented 1 year ago

Hi,

Solved by adding the following import to MLText.m.

#import <MLKitTextRecognitionCommon/MLKitTextRecognitionCommon.h>

Screenshot 2023-05-03 at 11 08 47

What happened yesterday for this error to pop up?

dragsirbu commented 1 year ago

Hi,

Solved by adding the following import to MLText.m.

#import <MLKitTextRecognitionCommon/MLKitTextRecognitionCommon.h>

Screenshot 2023-05-03 at 11 08 47

What happened yesterday for this error to pop up?

That worked. Thank you!

megha2021 commented 1 year ago

Hi,

Solved by adding the following import to MLText.m.

#import <MLKitTextRecognitionCommon/MLKitTextRecognitionCommon.h>

Screenshot 2023-05-03 at 11 08 47

What happened yesterday for this error to pop up?

Hi, using the above import in my local machine I'm able to run successfully but when I'm trying to build in ionic Appflow(ionichub) the build fails. How can I resolve that