mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.62k stars 1.1k forks source link

🔧 'react/bridging/CallbackWrapper.h' file not found #2603

Closed mikoprus closed 8 months ago

mikoprus commented 9 months ago

How were you trying to build the app?

I tried to build my app with XCode

I tried troubleshooting step no 5: Make sure you have created a Swift bridging header in your project However, I'm not prompted by the XCode like guide suggests: Press Create Bridging Header when promted.

Full build logs

/Users/user/Library/Developer/Xcode/DerivedData/mobile-apywzqgnyufposbigwaniblslult/Build/Products/Debug-iphonesimulator/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core/ReactCommon/CallbackWrapper.h:11:10 'react/bridging/CallbackWrapper.h' file not found

Project dependencies

"dependencies": {
    "@react-native-community/netinfo": "^11.2.1",
    "@react-native-firebase/analytics": "^18.7.2",
    "@react-native-firebase/app": "^18.7.2",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/native-stack": "^6.9.17",
    "@reduxjs/toolkit": "^2.2.0",
    "@sayem314/react-native-keep-awake": "^1.2.2",
    "axios": "^1.5.1",
    "events": "^3.3.0",
    "jwt-decode": "^3.1.2",
    "lottie-react-native": "^6.5.1",
    "ramda": "^0.29.1",
    "react": "18.2.0",
    "react-native": "0.72.3",
    "react-native-audio-recorder-player": "^3.6.1",
    "react-native-bouncy-checkbox": "^3.0.7",
    "react-native-circular-progress-indicator": "^4.4.2",
    "react-native-config": "^1.5.1",
    "react-native-device-info": "^10.12.0",
    "react-native-file-logger": "^0.4.1",
    "react-native-fs": "^2.20.0",
    "react-native-inset-shadow": "^1.0.3",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-reanimated": "^3.5.4",
    "react-native-render-html": "^6.3.4",
    "react-native-safe-area-context": "^4.7.4",
    "react-native-screens": "^3.27.0",
    "react-native-sound": "^0.11.2",
    "react-native-svg": "^13.14.0",
    "react-native-vision-camera": "^3.9.0",
    "react-native-zip-archive": "^6.1.0",
    "react-redux": "^9.1.0",
    "rn-fetch-blob": "^0.12.0",
    "react-native-vision-camera-face-detector": "^1.2.2",
    "react-native-worklets-core": "^0.2.4"
  }

VisionCamera Version

3.9.0

Target platforms

iOS

Operating system

MacOS

Can you build the VisionCamera Example app?

Yes, I can successfully build the Example app here

Additional information

rohitbindal commented 9 months ago

Hi @mikoprus have you checked #1121 ? I also think that troubleshooting step 5 is for when you are writing your own frame processor for ios.

mikoprus commented 9 months ago

adding s.dependency "ReactCommon" to VisionCamera.podspec fixes the bug

mrousavy commented 8 months ago

Great, maybe I need to add that again.

mikoprus commented 8 months ago

@mrousavy I've created a PR adding this: https://github.com/mrousavy/react-native-vision-camera/pull/2620

jackylu0124 commented 8 months ago

@mrousavy I am using React Native 0.72, the latest version of V3 (3.9.1) builds perfectly, but in order for the latest version of V2 (2.16.8) to build I have to add s.dependency "ReactCommon" to VisionCamera.podspec; however, I checked and cannot find the line s.dependency "ReactCommon" in VisionCamera.podspec in V3, yet V3 still builds, what is the reason that it builds in V3 without that line but does not build in V2 without that line? Thank you for your help in advance and would love to buy you a coffee!

Related Issues: