🐛 After adding react-native-vision-camera app does not build(event after checking troubleshooting and existing issues)
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

After running Build from xcode

Relevant log output
No response
Device
iPhone 11 (15.4)
VisionCamera Version
2.13.5
Additional information
- [ ] I am using Expo
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar issues in this repository and found none.
I'm having the same problem after adding the library to my project.
@MatheusHCP Please let me know if you find the solution
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.
This problem is occurred after pod install, if before pod install the project run normal, but not correctly.
I ran into this issue today as well. Has anyone managed to get this resolved yet?
@timoschlueter I didn't find the solution. I used react-native-camera library instead, it worked perfectly for me
@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 :)
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]
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.