Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 of 4 tasks
lvothnrv opened this issue Jul 21, 2022 · 13 comments
Closed
3 of 4 tasks

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

lvothnrv opened this issue Jul 21, 2022 · 13 comments
Labels
🐛 bug Something isn't working

Comments

@lvothnrv
Copy link

What were you trying to do?

Hello here since I switched to react-native 0.69.2 I have this bug that drives me crazy I tested everything nothing happens I even created a react-native project project and just installed react-native-vision- camera I have the same problem..

Capture d’écran 2022-07-21 à 23 34 37

Reproduceable Code

No response

What happened instead?

I just can't start my application anymore.

Relevant log output

No response

Device

iPhone 13

VisionCamera Version

2.14.0

Additional information

@lvothnrv lvothnrv added the 🐛 bug Something isn't working label Jul 21, 2022
@dmarkow
Copy link

dmarkow commented Jul 22, 2022

Looks like a fix was merged in react-native. Until it's released, adding this to my post_install block in ios/Podfile fixed it (I have no idea if the issue affects Android too, we're only targeting iOS right now).

installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
  target_installation_result.native_target.build_configurations.each do |config|
    # For third party modules who have React-bridging dependency to search correct headers
    config.build_settings['HEADER_SEARCH_PATHS'] ||= '$(inherited) '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_ROOT)/Headers/Private/React-bridging/react/bridging" '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers" '
  end
end

@lvothnrv
Copy link
Author

Looks like a fix was merged in react-native. Until it's released, adding this to my post_install block in ios/Podfile fixed it (I have no idea if the issue affects Android too, we're only targeting iOS right now).

installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
  target_installation_result.native_target.build_configurations.each do |config|
    # For third party modules who have React-bridging dependency to search correct headers
    config.build_settings['HEADER_SEARCH_PATHS'] ||= '$(inherited) '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_ROOT)/Headers/Private/React-bridging/react/bridging" '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers" '
  end
end

Hi thank you for your comment but I don't know if it's me who misplaces the piece of code you gave me but it doesn't work can you show me your code please...

@dmarkow
Copy link

dmarkow commented Jul 24, 2022

@lvothnrv In you ios/Podfile, there should be a line that starts with post_install do |installer|. Put this inside that.

@lvothnrv
Copy link
Author

@lvothnrv In you ios/Podfile, there should be a line that starts with post_install do |installer|. Put this inside that.

I did that but it doesn't work..

post_install do |installer|
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
target_installation_result.native_target.build_configurations.each do |config|
# For third party modules who have React-bridging dependency to search correct headers
config.build_settings['HEADER_SEARCH_PATHS'] ||= '$(inherited) '
config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_ROOT)/Headers/Private/React-bridging/react/bridging" '
config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers" '
end
end
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end

@dmarkow
Copy link

dmarkow commented Jul 24, 2022

@lvothnrv Did you run pod install again after adding this? If so, then I'm not sure what else to add...

@lvothnrv
Copy link
Author

@lvothnrv Did you run pod install again after adding this? If so, then I'm not sure what else to add...

No I didn't.. thank you very much you really save my life again thank you my friend.

@babeone
Copy link

babeone commented Nov 6, 2022

Upgrading to react-native 0.69.3 seems to resolve the problem

@ziga-hvalec
Copy link

Looks like a fix was merged in react-native. Until it's released, adding this to my post_install block in ios/Podfile fixed it (I have no idea if the issue affects Android too, we're only targeting iOS right now).

installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
  target_installation_result.native_target.build_configurations.each do |config|
    # For third party modules who have React-bridging dependency to search correct headers
    config.build_settings['HEADER_SEARCH_PATHS'] ||= '$(inherited) '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_ROOT)/Headers/Private/React-bridging/react/bridging" '
    config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers" '
  end
end

This worked on react native 0.70.6 and vision camera 2.15.2.

@flaviocoppola
Copy link

flaviocoppola commented Jan 17, 2023

I added this block to the Podfile, ran pod install, but when I try to generate the build on Xcode it gives me "Build file not found"

@Osamasomy
Copy link

facing same problem any solution?

@sravis02
Copy link

also still got this

@mrousavy
Copy link
Owner

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.

@sekhuat
Copy link

sekhuat commented Jan 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants