skip to Main Content

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!

2

Answers


  1. Chosen as BEST ANSWER

    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.


  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search