react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 After adding react-native-vision-camera app does not build(event after checking troubleshooting and existing issues)

Open qeorqer opened this issue 2 years ago • 4 comments

What were you trying to do?

I need to add react-native-vision-camera to my ios app. I followed through the installation guide from the docs(installed library, then pods, added react-native-reanimated to my package.json as well). Checked everything from the troubleshooting page and it did not helped, the app still doesn't build. Please tell if you need any other information from my side. Also, I've seen the similar issue with folly/Optional.h, but the solution did not help me(or I did not understood its usage)

Dependencies and versions: "react-native": "0.63.3", "react-native-reanimated": "^2.9.1", "react-native-vision-camera": "^2.13.5",

SWIFT_VERSION = 5.2; platform :ios, '12.0'

Reproduceable Code

No response

What happened instead?

After running npx react-native run-ios image

After running Build from xcode image

Relevant log output

No response

Device

iPhone 11 (15.4)

VisionCamera Version

2.13.5

Additional information

qeorqer avatar Jul 12 '22 15:07 qeorqer

I'm having the same problem after adding the library to my project.

MatheusHCP avatar Jul 13 '22 15:07 MatheusHCP

@MatheusHCP Please let me know if you find the solution

qeorqer avatar Jul 14 '22 08:07 qeorqer

I am having the same issue, I created a new react native project using npx react-native init Project then I installed react-native-vision-camera and followed all their steps, troubleshooting, etc. and still getting the same error. react native version is 0.69.1 - This error I am getting with iOS only. I had no issue with Android.

aha85b avatar Jul 14 '22 12:07 aha85b

This problem is occurred after pod install, if before pod install the project run normal, but not correctly.

MatheusHCP avatar Jul 14 '22 12:07 MatheusHCP

I ran into this issue today as well. Has anyone managed to get this resolved yet?

timoschlueter avatar Oct 03 '22 11:10 timoschlueter

@timoschlueter I didn't find the solution. I used react-native-camera library instead, it worked perfectly for me

qeorqer avatar Oct 03 '22 13:10 qeorqer

@qeorqer thats the library i wanted to replace with this one, since react-native-camera seems no longer to be maintained. But I figured out how to get around the issue: https://github.com/amplitude/Amplitude-ReactNative/issues/52#issuecomment-803857119 Simply adding the Swift Bridging headers solved the problem for me. react-native-vision-camera works without any problem now :)

timoschlueter avatar Oct 03 '22 13:10 timoschlueter

In my case, Hermes was disabled after I enabled the build fixed changed podfile use_react_native :hermes_enabled => false => :hermes_enabled => flags[:hermes_enabled]

abdul-abdu avatar Mar 10 '23 13:03 abdul-abdu

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.

mrousavy avatar Sep 30 '23 09:09 mrousavy