react-native-vision-camera: 'RNReanimated/REAIOSErrorHandler.h' file not foundđ
What were you trying to do?
âreact-native-reanimatedâ: â^3.4.0â, âreact-native-vision-cameraâ: â^2.15.5â,
When I run it through xcode I get the 'RNReanimated/REAIOSErrorHandler.hâ file not found error.
Reproduceable Code
#ifndef VISION_CAMERA_DISABLE_FRAME_PROCESSORS
#if __has_include(<RNReanimated/NativeReanimatedModule.h>)
#if __has_include(<RNReanimated/RuntimeManager.h>)
#import <RNReanimated/RuntimeManager.h>
#import <RNReanimated/RuntimeDecorator.h>
#import <RNReanimated/REAIOSErrorHandler.h>
#import "VisionCameraScheduler.h"
#define ENABLE_FRAME_PROCESSORS
#else
#warning Your react-native-reanimated version is not compatible with VisionCamera, Frame Processors are disabled. Make sure you're using reanimated 2.2.0 or above!
#endif
#else
#warning The NativeReanimatedModule.h header could not be found, Frame Processors are disabled. If you want to use Frame Processors, make sure you install react-native-reanimated!
#endif
#endif
#import "FrameProcessorUtils.h"
#import "FrameProcessorCallback.h"
#import "../React Utils/MakeJSIRuntime.h"
#import "../React Utils/JSIUtils.h"
What happened instead?
When I run it through xcode I get the 'RNReanimated/REAIOSErrorHandler.hâ file not found error.
Relevant log output
'**RNReanimated/REAIOSErrorHandler.h' file not found**
Device
Iphone 14
VisionCamera Version
2.15.5
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this projectâs Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 16
- Comments: 18 (2 by maintainers)
I seem to have worked my way around this issue by completely removing the code related to Frame Processors on iOS. Of course, in my case, I wasnât using them anyway, so removing the code temporarily is good enough for now.
As @nn1900 stated, disabling the frame processors with the config flag wasnât working either, the compiler seemed to ignore it and look for the file to import anyway.
To do this, add and configure patch-packge to your project and add this patch in the
patches
folder at the root of your project. You will then have to re-runyarn install && npx pod-install
Hopefully we wonât have to keep this workaround for long! đ¤đź
I fixed the issue by downgrading the react-native-reanimated version to
3.3.0
.Same problem here.
not working with RNAnimated version â3.3.0â
@mrousavy Can you please look into it, ASAP.
If you guys are planning to use react-native-vision-camera with frame processor [i.e. QR scanner ] then please use this version of packages:
and it is working fine. for your information i am using React-Native: 0.70.12 ios: 16.6
I fixed the issue by downgrading the react-native version to
0.71.7
.