-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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 wrong paths? #34102
Comments
Same issue. Does anyone have a tip to pass out ? |
Same issue |
Same |
same issue |
Its possible to copy files to correct path, but its not long term solution |
I think can be related to this: f97c6a5 so adding
on the end of pod file should fix an issue, I will try it soon and back with details. |
Changing header_dir to dot helps: diff --git a/node_modules/react-native/ReactCommon/React-bridging.podspec b/node_modules/react-native/ReactCommon/React-bridging.podspec
index 5255c13..52a8eb0 100644
--- a/node_modules/react-native/ReactCommon/React-bridging.podspec
+++ b/node_modules/react-native/ReactCommon/React-bridging.podspec
@@ -30,7 +30,7 @@ Pod::Spec.new do |s|
s.source = source
s.source_files = "react/bridging/**/*.{cpp,h}"
s.exclude_files = "react/bridging/tests"
- s.header_dir = "react/bridging"
+ s.header_dir = "."
s.header_mappings_dir = "."
s.compiler_flags = folly_compiler_flags
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\"",
|
Same issue here |
same issue here too. |
After doing this I've not got a new error:
|
Checkout this pull: mrousavy/react-native-vision-camera#1109. |
I'm also having same issue here. System: |
i added patch but not work |
this may fix the header not found error: --- a/ios/Podfile
+++ b/ios/Podfile
@@ -33,5 +33,14 @@ target 'RN069' do
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(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)/Headers/Private/React-bridging/react/bridging" '
+ config.build_settings['HEADER_SEARCH_PATHS'] << '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers" '
+ end
+ end
+
end
end if that works fine, maybe we could propose the fix to the for |
How do you add patch? I am having this error in xcode. Been waiting for new release but I think I will try this to get things going. |
Create a |
Not working for now because of: - Android: expo incompatibility expo/expo#18166 - iOS: facebook/react-native#34102
Hi I got this error too on react 0.69.0 and 0.69.1, the fact that I'm creating a bridge and turn on !use_framework to make a wrapper for MapBox Navigation SDK trow me that CallBackWrapper is not found and I tried any solution proposed and still got this error. Did someone found how to fix this ? |
Apply the mentioned patches above. Fixed for me in 0.69.1 |
@kierancrown you're talking about Kudo proposition with Podfile ? cause I tried too and didn't work or can you just tell me which one work for you. |
Sure. Create a file in your root directory called
|
@kierancrown :/ still got the issue there is my patch file that got applied successfully :
Podfile :
Pod install was successful
but still can't understand why I still got the issue am I missing something ? |
@Polyrion it's not same issue. Try to remove |
I still got this error on RN 0.70.3 and this comment from Kudo helped me. I'm not using |
is need a repro for react-native init'd component |
@kelset here's a reproduction without expo https://github.com/evelant/rnfbdemo |
Hi all, I'm a bit late to the party here and can't remember all my steps, but I was running into this using React Native firebase with use_frameworks! :linkage => :static and an Nx monorepo, I think it may be a combo of those two things that caused my issues. I'm using "react-native": "0.70.1" which seems to have @Kudo's patch already in it to update the Header paths. After digging around on where the headers ended up I emulated what he had done in my Pod file and added the PODS_TARGET_SRCROOT to it and my app was able to build properly. YMMV. (Note I'm a Typescipt/JS guy not an iOS developer so I'm just slightly informed on what I'm actually doing here)
|
Seems to be fixed in |
I'm still facing @shirakaba's exact same issue, in RN 0.69.8 and react-native-vision-camera 2.15, and I already followed all the suggestions with no success. How did you solve? |
It seems React Native 0.72.0 brought back this issue. I'm getting |
I'm still having this issue on 0.72.3 while trying to use react-native-vision-camera 2.15.4. None of the patches mentioned have worked. |
SAME ISSUE |
Same issue here, using |
@fontesrp these I did not, didn't come across this issue to be honest. Thanks for the suggestion, I'll spend some time reading and trying the proposed solutions there. I'll let you know how it goes 👍 |
So, honestly I didn't find any explicit solutions proposed besides commits / patches that were already merged into the |
Also experiencing the issue (using use_frameworks! :linkage => :static for firebase), with |
same on |
@aybarska Does it working? |
Same exact issue here
Have to use these, in the app.json
started happening once switched to useFrameworks: static |
hi @Amurmurmur , yes I have resolved it. but I didn't use expo for it. I resolved by correcting pod file |
@dharmik-valani what did you change? |
@Amurmurmur what was your change? |
Description
Wrong React-bridging directories structure:
xxx/ios/Pods/Headers/Public/React-bridging/react/bridging/react/bridging/LongLivedObject.h
should be:
xxx/ios/Pods/Headers/Public/React-bridging/react/bridging/LongLivedObject.h
So
xxx/node_modules/react-native/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h
has wrong imports likeVersion
0.69.1
Output of
npx react-native info
warn Package react-native-appsflyer has been ignored because it contains invalid configuration. Reason: "dependency.platforms.ios.podspecPath" is not allowed
warn Package @svgr/webpack has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/webx/_WEBX/gigaverse-mobile/node_modules/@svgr/webpack/package.json
info Fetching system and libraries information...
System:
OS: macOS 12.4
CPU: (8) arm64 Apple M1
Memory: 102.55 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.5.5 - ~/.nvm/versions/node/v16.13.1/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /opt/homebrew/opt/openjdk@11/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^18.2.0 => 18.2.0
react-native: ^0.69.1 => 0.69.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
0.69.1 react native and for example install
react-native-vision-camera
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: