Repository: facebook/react-native (language: cpp)

Issue:
React-bridging wrong paths?
### Description

![CleanShot 2022-06-29 at 18 44 51](https://user-images.githubusercontent.com/34196239/176491340-de578076-f6cc-420b-8cd5-b97a9348e007.png)
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 like 
```
#include <react/bridging/CallbackWrapper.h>
#include <react/bridging/LongLivedObject.h>
```



### Version

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

![CleanShot 2022-06-29 at 18 51 42](https://user-images.githubusercontent.com/34196239/176492449-fb76338a-02cd-45a7-887a-fe0828a5fa57.png)
![CleanShot 2022-06-29 at 18 52 03](https://user-images.githubusercontent.com/34196239/176492496-912b165a-a8b6-4fa5-ad32-877a16a772e7.png)
![CleanShot 2022-06-29 at 18 52 13](https://user-images.githubusercontent.com/34196239/176492521-e3a33756-f938-454f-b98b-85283040390b.png)



Discussion / hints:
Facing the same issue after upgrading to 0.69.1
<img width="273" alt="Screen Shot 2022-06-30 at 4 56 43 PM" src="https://user-images.githubusercontent.com/71073471/176666207-1df8dfda-379c-42f0-be95-67c91207ba0e.png">

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: https://github.com/facebook/react-native/commit/f97c6a5b498eec95e99a02c7842cb2ae160cd6cd

![CleanShot 2022-07-01 at 12 04 06](https://user-images.githubusercontent.com/34196239/176873686-9cbe9c09-d621-4c71-8b83-5c649043b2eb.png)

![CleanShot 2022-07-01 at 12 04 28](https://user-images.githubusercontent.com/34196239/176873728-ccbcae59-7abd-46d5-94f5-99e1d9de4b58.png)

so adding
```
# The prefix to react-native
prefix = "../node_modules/react-native"
pod 'React-bridging', :path => "#{prefix}/ReactCommon/react/bridging"
```
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
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.
> Changing header_dir to dot helps:
> 
> ```diff
> 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\"",
> ```

After doing this I've not got a new error:
```
Use of undeclared identifier 'jsi'; did you mean 'facebook::jsi'?
```
![Screenshot 2022-07-06 at 16 02 00](https://user-images.githubusercontent.com/4990483/177582280-8bf0d9e5-8147-4898-bac9-3d91cfb45327.png)


> > Changing header_dir to dot helps:
> > ```diff
> > 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\"",
> > ```
> 
> After doing this I've not got a new error:
> 
> ```
> Use of undeclared identifier 'jsi'; did you mean 'facebook::jsi'?
> ```
> 
> ![Screenshot 2022-07-06 at 16 02 00](https://user-images.githubusercontent.com/4990483/177582280-8bf0d9e5-8147-4898-bac9-3d91cfb45327.png)

Checkout this pull: https://github.com/mrousavy/react-native-vision-camera/pull/1109. 
Need to wait new release of vision camera.. or you can use patch (it also fix android build errors): [react-native-vision-camera+2.13.5.patch.txt](https://github.com/facebook/react-native/files/9056150/react-native-vision-camera%2B2.13.5.patch.txt)


**I'm also having same issue here.**

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 92.28 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 8.6.0 - /opt/homebrew/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.4, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8512546
    Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.0.0 => 18.0.0 
    react-native: 0.69.1 => 0.69.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
i added patch but not work
System:
    OS: macOS 12.3.1
    CPU: (8) x64 Apple M1
    Memory: 34.13 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.19 - ~/Documents/Adamo/keiyo-club-app/node_modules/.bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
    Watchman: 2022.05.16.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 29, 30, 31, 32
      Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0
      System Images: android-30 | Intel x86 Atom_64, android-31 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/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
this may fix the header not found error:

```diff
--- 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 [`react_native_post_install`](https://github.com/facebook/react-native/blob/23accbf58d2fa03ad020e07f00012a32609c7218/scripts/react_native_pods.rb#L287-L302) helper.

for `jsi::` -> `facebook::jsi::` namespace change, it is from 009d80bf5a55dd74be448960b1344ac7599c6bae and it's a better practice IMO even though that requires third party modules to fix the breaking code. 
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 `patches` directory in the root of your project and add your patches making sure they end in the `.patch` extension. Then install [patch-package](https://www.npmjs.com/package/patch-package) and follow the setup guide.
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 ? 
> 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.
> @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 `patches/react-native+0.69.1.patch` with contents

```
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\"",
```
@kierancrown :/ still got the issue
![Capture d’écran 2022-07-15 à 16 25 35](https://user-images.githubusercontent.com/69394749/179243676-012583ed-5c2b-4266-bfc3-00c4e3ae427d.png)

there is my patch file that got applied successfully : 
```
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\"",
``` 

Podfile : 
```
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

use_frameworks!
target 'mapnav' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
  pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
  pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"

  # Pods for Mapbox navigation
  pod 'MapboxNavigation', '~> 2.6'

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'mapnavTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  if !ENV['CI']
    # local configuration
    # use_flipper!()
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
        end
      end
      react_native_post_install(installer)
      __apply_Xcode_12_5_M1_post_install_workaround(installer) if defined?(__apply_Xcode_12_5_M1_post_install_workaround)
    end
  else
    # CI configuration
    post_install do |installer|
      react_native_post_install(installer)
      __apply_Xcode_12_5_M1_post_install_workaround(installer) if defined?(__apply_Xcode_12_5_M1_post_install_workaround)
    end
  end
end
```

Pod install was successful
```
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.69.1)
Installing FBReactNativeSpec (0.69.1)
Installing MapboxCommon (22.0.0)
Installing MapboxCoreMaps (10.6.1)
Installing MapboxCoreNavigation (2.6.0)
Installing MapboxDirections (2.6.0)
Installing MapboxMaps (10.6.1)
Installing MapboxMobileEvents (1.0.8)
Installing MapboxNavigation (2.6.0)
Installing MapboxNavigationNative (106.0.0)
Installing MapboxSpeech (2.0.1)
Installing Permission-Camera (3.5.0)
Installing Permission-LocationAccuracy (3.5.0)
Installing Permission-LocationAlways (3.5.0)
Installing Permission-LocationWhenInUse (3.5.0)
Installing Polyline (5.0.2)
Installing RCT-Folly (2021.06.28.00-v2)
Installing RCTRequired (0.69.1)
Installing RCTTypeSafety (0.69.1)
Installing RNBootSplash (4.2.3)
Installing RNFastImage (8.5.11)
Installing RNGestureHandler (2.5.0)
Installing RNPermissions (3.5.0)
Installing RNReanimated (2.9.1)
Installing RNSVG (12.3.0)
Installing RNScreens (3.15.0)
Installing React (0.69.1)
Installing React-Codegen (0.69.1)
Installing React-Core (0.69.1)
Installing React-CoreModules (0.69.1)
Installing React-RCTActionSheet (0.69.1)
Installing React-RCTAnimation (0.69.1)
Installing React-RCTBlob (0.69.1)
Installing React-RCTImage (0.69.1)
Installing React-RCTLinking (0.69.1)
Installing React-RCTNetwork (0.69.1)
Installing React-RCTSettings (0.69.1)
Installing React-RCTText (0.69.1)
Installing React-RCTVibration (0.69.1)
Installing React-bridging (0.69.1)
Installing React-callinvoker (0.69.1)
Installing React-cxxreact (0.69.1)
Installing React-jsi (0.69.1)
Installing React-jsiexecutor (0.69.1)
Installing React-jsinspector (0.69.1)
Installing React-logger (0.69.1)
Installing React-perflogger (0.69.1)
Installing React-runtimeexecutor (0.69.1)
Installing ReactCommon (0.69.1)
Installing SDWebImage (5.11.1)
Installing SDWebImageWebPCoder (0.8.5)
Installing Solar-dev (3.0.1)
Installing Turf (2.4.0)
Installing Yoga (1.14.0)
Installing boost (1.76.0)
Installing fmt (6.2.1)
Installing glog (0.3.5)
Installing libwebp (1.2.1)
Installing react-native-geolocation (2.1.0)
Installing react-native-safe-area-context (4.3.1)
Installing react-native-spinkit (1.4.1)
```

but still can't understand why I still got the issue am I missing something ?
@Polyrion it's not same issue. Try to remove `use_frameworks` and add `:modular_headers => true` only for mapbox pod
> :modular_headers => true

Hi @s5z6 so I removed use_framework and added modular_headers => true it resolved the issue about bridging not found but cause me another one that called Multiple commands produce 

```
  # Pods for Mapbox navigation
  pod 'MapboxNavigation', '~> 2.6', :modular_headers => true
```
![Capture d’écran 2022-07-15 à 16 45 31](https://user-images.githubusercontent.com/69394749/179247745-d2748894-2382-4d0f-b068-375f956177af.png)

Does that talk to you ?

thank you 

> @kierancrown :/ still got the issue ![Capture d’écran 2022-07-15 à 16 25 35](https://user-images.githubusercontent.com/69394749/179243676-012583ed-5c2b-4266-bfc3-00c4e3ae427d.png)
> 
> there is my patch file that got applied successfully :
> 
> ```
> 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\"",
> ```
> 
> Podfile :
> 
> ```
> require_relative '../node_modules/react-native/scripts/react_native_pods'
> require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
> 
> platform :ios, '12.4'
> install! 'cocoapods', :deterministic_uuids => false
> 
> use_frameworks!
> target 'mapnav' do
>   config = use_native_modules!
> 
>   # Flags change depending on the env values.
>   flags = get_default_flags()
> 
>   permissions_path = '../node_modules/react-native-permissions/ios'
>   pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
>   pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
>   pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
>   pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
> 
>   # Pods for Mapbox navigation
>   pod 'MapboxNavigation', '~> 2.6'
> 
>   use_react_native!(
>     :path => config[:reactNativePath],
>     # to enable hermes on iOS, change `false` to `true` and then install pods
>     :hermes_enabled => flags[:hermes_enabled],
>     :fabric_enabled => flags[:fabric_enabled],
>     # An absolute path to your application root.
>     :app_path => "#{Pod::Config.instance.installation_root}/.."
>   )
> 
>   target 'mapnavTests' do
>     inherit! :complete
>     # Pods for testing
>   end
> 
>   # Enables Flipper.
>   #
>   # Note that if you have use_frameworks! enabled, Flipper will not work and
>   # you should disable these next few lines.
>   if !ENV['CI']
>     # local configuration
>     # use_flipper!()
>     post_install do |installer|
>       installer.pods_project.targets.each do |target|
>         target.build_configurations.each do |config|
>           config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
>         end
>       end
>       react_native_post_install(installer)
>       __apply_Xcode_12_5_M1_post_install_workaround(installer) if defined?(__apply_Xcode_12_5_M1_post_install_workaround)
>     end
>   else
>     # CI configuration
>     post_install do |installer|
>       react_native_post_install(installer)
>       __apply_Xcode_12_5_M1_post_install_workaround(installer) if defined?(__apply_Xcode_12_5_M1_post_install_workaround)
>     end
>   end
> end
> ```
> 
> Pod install was successful
> 
> ```
> Installing DoubleConversion (1.1.6)
> Installing FBLazyVector (0.69.1)
> Installing FBReactNativeSpec (0.69.1)
> Installing MapboxCommon (22.0.0)
> Installing MapboxCoreMaps (10.6.1)
> Installing MapboxCoreNavigation (2.6.0)
> Installing MapboxDirections (2.6.0)
> Installing MapboxMaps (10.6.1)
> Installing MapboxMobileEvents (1.0.8)
> Installing MapboxNavigation (2.6.0)
> Installing MapboxNavigationNative (106.0.0)
> Installing MapboxSpeech (2.0.1)
> Installing Permission-Camera (3.5.0)
> Installing Permission-LocationAccuracy (3.5.0)
> Installing Permission-LocationAlways (3.5.0)
> Installing Permission-LocationWhenInUse (3.5.0)
> Installing Polyline (5.0.2)
> Installing RCT-Folly (2021.06.28.00-v2)
> Installing RCTRequired (0.69.1)
> Installing RCTTypeSafety (0.69.1)
> Installing RNBootSplash (4.2.3)
> Installing RNFastImage (8.5.11)
> Installing RNGestureHandler (2.5.0)
> Installing RNPermissions (3.5.0)
> Installing RNReanimated (2.9.1)
> Installing RNSVG (12.3.0)
> Installing RNScreens (3.15.0)
> Installing React (0.69.1)
> Installing React-Codegen (0.69.1)
> Installing React-Core (0.69.1)
> Installing React-CoreModules (0.69.1)
> Installing React-RCTActionSheet (0.69.1)
> Installing React-RCTAnimation (0.69.1)
> Installing React-RCTBlob (0.69.1)
> Installing React-RCTImage (0.69.1)
> Installing React-RCTLinking (0.69.1)
> Installing React-RCTNetwork (0.69.1)
> Installing React-RCTSettings (0.69.1)
> Installing React-RCTText (0.69.1)
> Installing React-RCTVibration (0.69.1)
> Installing React-bridging (0.69.1)
> Installing React-callinvoker (0.69.1)
> Installing React-cxxreact (0.69.1)
> Installing React-jsi (0.69.1)
> Installing React-jsiexecutor (0.69.1)
> Installing React-jsinspector (0.69.1)
> Installing React-logger (0.69.1)
> Installing React-perflogger (0.69.1)
> Installing React-runtimeexecutor (0.69.1)
> Installing ReactCommon (0.69.1)
> Installing SDWebImage (5.11.1)
> Installing SDWebImageWebPCoder (0.8.5)
> Installing Solar-dev (3.0.1)
> Installing Turf (2.4.0)
> Installing Yoga (1.14.0)
> Installing boost (1.76.0)
> Installing fmt (6.2.1)
> Installing glog (0.3.5)
> Installing libwebp (1.2.1)
> Installing react-native-geolocation (2.1.0)
> Installing react-native-safe-area-context (4.3.1)
> Installing react-native-spinkit (1.4.1)
> ```
> 
> but still can't understand why I still got the issue am I missing something ?

Also don't forget to do a pod install afterwards
@Polyrion [my fix](https://github.com/facebook/react-native/commit/f97c6a5b498eec95e99a02c7842cb2ae160cd6cd) is originally to address `use_frameworks!`, so it doesn't make sense you have to turn off use_frameworks. do you have a minimal reproducible example repository? i can try to take a further look in case it helps.
@Kudo i was thinking the same about use_framework, I tried with : 
RN 68.2 Fresh install work well
RN 69 Fresh install broke a Path React Bridging Error :/ 
RN 69.1 Fresh install work Well 

I'm looking on my 69.1 project if the error could not come from a dependency 

there are the different public repo : 
https://github.com/Polyrion/mapnav
https://github.com/Polyrion/mapnav_rn69.0
https://github.com/Polyrion/mapnav_rn_69.1

Thanks for your help 

thanks for the awesome example repo @Polyrion. [my fix](https://github.com/facebook/react-native/commit/f97c6a5b498eec95e99a02c7842cb2ae160cd6cd) is to address the use_frameworks error on 0.69.0 and landed on 0.69.1. it makes sense for 0.69.1 well work. please let me know if you still encounter other errors on 0.69.1.
since this is fixed in 0.69.1, does it mean we can close this off?
@kelset i am thinking to propose [the workaround](https://github.com/facebook/react-native/issues/34102#issuecomment-1180727214) to react_native_pods.rb. that will fix the build errors from some third party modules like vision-camera.

Fix patch:
diff --git a/scripts/react_native_pods.rb b/scripts/react_native_pods.rb
index 265fff1b649543..e7c59ad5f874d3 100644
--- a/scripts/react_native_pods.rb
+++ b/scripts/react_native_pods.rb
@@ -268,6 +268,18 @@ def fix_config(config)
   end
 end
 
+def fix_react_bridging_header_search_paths(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
+end
+
 def set_node_modules_user_settings(installer, react_native_path)
   puts "Setting REACT_NATIVE build settings"
   projects = installer.aggregate_targets
@@ -291,6 +303,7 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
 
   exclude_architectures(installer)
   fix_library_search_paths(installer)
+  fix_react_bridging_header_search_paths(installer)
 
   cpp_flags = DEFAULT_OTHER_CPLUSPLUSFLAGS
   if ENV['RCT_NEW_ARCH_ENABLED'] == '1'


Test patch: