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

React Native BUILD FAILED on run-ios #16

Closed
HieeusNguyen opened this issue May 17, 2024 · 7 comments
Closed

React Native BUILD FAILED on run-ios #16

HieeusNguyen opened this issue May 17, 2024 · 7 comments

Comments

@HieeusNguyen
Copy link

I followed the steps in the documentation but ended up receiving this error. This error only appeared when I tried to restart it with npx react-native run-ios

** BUILD FAILED **

The following build commands failed:
CompileC /Users/hieu/Library/Developer/Xcode/DerivedData/VMG4-gvwtohzfzveebgepkorvlhstazyf/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/VisionCamera.build/Objects-normal/arm64/JSINSObjectConversion.o /Users/hieu/WorkPlace/ReactNative/VMG4/node_modules/react-native-vision-camera/ios/Frame\ Processor/JSINSObjectConversion.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'VisionCamera' from project 'Pods')
(1 failure)

React-native: 0.74.1
Xcode: 15.3
iOS: 17.4
react-native-vision-camera: 3.9.2 (The version has been updated to be compatible with react-native-vision-camera-v3-text-recognition),
react-native-worklets-core: 0.5.0 (The version has been updated to be compatible with react-native-vision-camera-v3-text-recognition),
react-native-vision-camera-v3-text-recognition: 1.1.1,

This is my first time writing this, so if there are any issues, I hope everyone can understand and support me so that I can fix this error. Thank you very much

@pedrol2b
Copy link
Contributor

Hey 👋🏻, so as far as i'm concerned until today

react-native-vision-camera does not yet fully support react-native: 0.74.1
so my guess is that the error that you're seeing is on their side;

image

mrousavy/react-native-vision-camera#2614

@HieeusNguyen
Copy link
Author

HieeusNguyen commented May 18, 2024

So, at the present time, how can this issue be resolved? And can the function scanText() accept an argument that is the path of the image?

@gev2002
Copy link
Owner

gev2002 commented May 21, 2024

Why, are you need to path of image?

@HieeusNguyen
Copy link
Author

I want to add the functionality to recognize text from images in the gallery. It would be great if this feature could be added. Thank you very much.

@pedrol2b
Copy link
Contributor

I want to add the functionality to recognize text from images in the gallery. It would be great if this feature could be added. Thank you very much.

Even tho is technically possible to implement this feature as you could create an InputImage from a file

using-a-file-uri

val image: InputImage
try {
    image = InputImage.fromFilePath(context, uri)
} catch (e: IOException) {
    e.printStackTrace()
}

i think that kinda miss the porpouse of this package and the integration with react-native-vision-camera;

maybe take a look at
https://github.com/a7medev/react-native-ml-kit

@HieeusNguyen
Copy link
Author

Great! So how do I use the vision-camera-v3-text-recognition library at the moment? I have used react-native version 0.73.6, vision-camera 3.9.2 and worklets-core 0.5.0 but still encounter the error above. Thank you for your enthusiastic support.

@gev2002
Copy link
Owner

gev2002 commented May 27, 2024

You can now use the plugin for version 4. The V4 plugin is out now! 🥳 https://github.com/gev2002/react-native-vision-camera-text-recognition

@gev2002 gev2002 closed this as completed May 27, 2024
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

3 participants