vision-camera-ocr icon indicating copy to clipboard operation
vision-camera-ocr copied to clipboard

Can't build on Ios

Open TruongNguyen95 opened this issue 1 year ago • 4 comments

Version: "react": "18.2.0", "react-native": "0.72.7", "@ismaelmoreiraa/vision-camera-ocr": "^2.1.1", "react-native-worklets-core": "^0.2.4",

Bug: The following build commands failed: SwiftEmitModule normal arm64 Emitting\ module\ for\ VisionCameraOcr (in target 'VisionCameraOcr' from project 'Pods') (1 failure)

Anybody known how to fix this bug?

TruongNguyen95 avatar Dec 13 '23 11:12 TruongNguyen95

/node_modules/vision-camera-ocr/ios/VisionCameraOcr.swift:7:49: error: cannot find type 'FrameProcessorPluginBase' in scope public class OCRFrameProcessorPlugin: NSObject, FrameProcessorPluginBase {

shav95 avatar Feb 28 '24 13:02 shav95

Same issue here

CMonjo avatar Mar 01 '24 06:03 CMonjo

Do you have react-native-vision-camera v4?

beatlecz avatar May 12 '24 20:05 beatlecz

If you are using yarn workspaces you need to nohoist react-native-vision-camera and any related plugin. By the way I've updated iOS native module version. I will soon open a PR.

BrunoVillanova avatar May 26 '24 01:05 BrunoVillanova