react-native-vision-camera: 🐛 'react/bridging/CallbackWrapper.h' file not found [SOLVED]

What were you trying to do?

Im trying to install the library, i think i follow all steps and all iOS troubleshooting section. I have tried with react-native-reanimated and without it. But always have the same issue

Captura de Pantalla 2022-07-06 a las 16 05 08

Reproduceable Code

"react": "18.0.0",
    "react-native": "0.69.1",
    "react-native-reanimated": "^2.9.1",
    "react-native-vision-camera": "^2.13.5"

What happened instead?

iOS build error

Relevant log output

/myApp/node_modules/react-native/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h:16:10: 'react/bridging/CallbackWrapper.h' file not found

Device

iPhone 11 simulator and iPhone Xr device

VisionCamera Version

“react-native-vision-camera”: “^2.13.5”

Additional information

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 37

Most upvoted comments

Hi any one Help this i am using react-native 0.70.6 and still facing the same issue

‘react/bridging/CallbackWrapper.h’ file not found image

fix for rn 0.72.4, react-native-vision-camera 2.15.5 and react-native-reanimated 2.17.5

with use_frameworks!

update your Podfile

` post_install do |installer| installer.pods_project.targets.each do |target| …

target.build_configurations.each do |config| config.build_settings[‘HEADER_SEARCH_PATHS’] ||= '$(inherited) ’ config.build_settings[‘HEADER_SEARCH_PATHS’] << '“${PODS_ROOT}/…/…/node_modules/react-native/ReactCommon” ’ if target.name === “RNReanimated” config.build_settings[‘CLANG_CXX_LANGUAGE_STANDARD’] = ‘c++17’ end end

`

Any update on this? I’m also facing this same issue. react-native: 0.72.4 react-native-vision-camera: 2.15.6

i am using react-native 0.69.5 and still facing the same issue ‘react/bridging/CallbackWrapper.h’ file not found

0.69.2 same error

Also having this issue (using use_frameworks! :linkage => :static for firebase), with “react-native”: “0.72.7”, “react-native-vision-camera”: “^3.6.12”,

Same here: “react-native”: “0.72.4”, “react-native-vision-camera”: “^2.16.1”

I start new project on RN 0.69.1 and add your patches, but i get the same error 😒

I add some info

    node v16.15.1
    cocoapods v1.11.3

    "react": "18.0.0",
    "react-native": "0.69.1",
    "react-native-vision-camera": "^2.13.5"

Try this https://github.com/facebook/react-native/issues/34102#issuecomment-1176370957

I also faced the same issue and I am using react-native-vision-camera ver 2.16.1. I solved the issue by adding s.dependency "ReactCommon" into the node_modules/react-native-vision-camera/VisionCamera.podspec at the last line as shown below.

Pod::Spec.new do |s|
  ...
  s.dependency "React-callinvoker"
  s.dependency "React"
  s.dependency "React-Core"
  s.dependency "ReactCommon"    <== Add this line
end

After made the changes, I execute pod install command then recompile the app again. Hope this will help those who using V2 of react-native-vision-camera.

fix for rn 0.72.4, react-native-vision-camera 2.15.5 and react-native-reanimated 2.17.5

with use_frameworks!

update your Podfile

` post_install do |installer| installer.pods_project.targets.each do |target| …

target.build_configurations.each do |config| config.build_settings[‘HEADER_SEARCH_PATHS’] ||= '$(inherited) ’ config.build_settings[‘HEADER_SEARCH_PATHS’] << '“${PODS_ROOT}/…/…/node_modules/react-native/ReactCommon” ’ if target.name === “RNReanimated” config.build_settings[‘CLANG_CXX_LANGUAGE_STANDARD’] = ‘c++17’ end end

`

this worked for me thanks!

Any update on this ? I am also facing this same issue react-native 0.72.3 react-native-vision-camera 2.15.5

Any update on this ? I am also facing this same issue react-native 0.72.3 react-native-vision-camera 2.15.5

“react”: “18.0.0”, “react-native”: “0.69.2”, “react-native-vision-camera”: “^2.14.0” It’s the same error :. (

iOS error fixed on 0.68.2 and 0.69.1 with ur last patch. Thanks!

s.dependency “ReactCommon”

Thank youuuuuuuu, this really helped me!

same for me with “react-native”: “0.72.4”, “react-native-vision-camera”: “^3.0.0”,

Same for me, on react-native 0.70.6 and react-native-vision-camera 2.15.6

I started having this issue after upgrading from Expo SDK 48 to 49. From what I’ve read, the issue is with RN 0.72. I did not have any problems while using RN 0.71. Had to revert for now.

Thanks!

I’m going to implement my own frame processor so no problem. I recommend you to implement your own frame processor to read QRs, its very easy