5

I am trying to setup my React Native app on iOS, but on build, I am always getting this error:

'react/bridging/CallbackWrapper.h' file not found

enter image description here

I have been investigating on my own and found a few people with the same problem:

I have tried everything in these answers but no luck. Since it seems related to React Native Vision Camera, I also did everything stated in their troubleshooting page.

Unforrunately I still get the error. I built the project both using npx react-native run-ios (which throws an endless error) and using XCode itself, where I could find the real error.

Can you help me? The app works perfectly in Android. Thanks!

MIPB
  • 1,770
  • 2
  • 12
  • 21

2 Answers2

1

If nothing of the links I pasted in the question work, what finally worked for me was:

  1. Updgrade React Native to >= 0.69.3 (my version was 0.69.0). To do that npx react-native upgrade.

  2. Delete Pods folder and Podfile.lock from iOS folder. Run pod install.

And then building the project again.

MIPB
  • 1,770
  • 2
  • 12
  • 21
1

The way to fix the problem is to comment-out the line :

s.header_dir  = "react/bridging"

in

/node_modules/react-native/ReactCommon/React-bridging.podspec