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/RCTBridgeDelegate.h' file not found #25838

Closed
llr101 opened this issue Jul 26, 2019 · 109 comments
Closed

'React/RCTBridgeDelegate.h' file not found #25838

llr101 opened this issue Jul 26, 2019 · 109 comments
Labels
Bug Needs: Author Feedback Needs: Issue Template This issue does not make use of the Issue Template, and may be missing necessary information. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@llr101
Copy link

llr101 commented Jul 26, 2019

Same error for the demo AwesomeProject.
react-native info:

info Fetching system and libraries information...
System:
OS: macOS 10.14.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 1.15 GB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.6.0 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 23, 28, 29
Build Tools: 28.0.3, 29.0.1
System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
react-native-cli: 2.0.1

@llr101 llr101 added the Bug label Jul 26, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Jul 26, 2019
@ldco2016
Copy link

Greetings, I am having a similar issue:

System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 1.26 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 11.10.1 - /usr/local/bin/node
    Yarn: 1.10.1 - /usr/local/bin/yarn
    npm: 6.7.0 - /usr/local/bin/npm
    Watchman: 4.7.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
      API Levels: 23, 25, 26, 27, 28
      Build Tools: 23.0.1, 26.0.2, 27.0.3, 28.0.3
      System Images: android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.4 AI-183.5429.30.34.5452501
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.4 => 0.60.4
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

This is my ios/NFIBEngage/AppDelegateh file:

/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>

@property (nonatomic, strong) UIWindow *window;

@end

The error is telling me it can't find that import:

AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>

@slavikdenis
Copy link

Duplicate #25707 ?

@ldco2016
Copy link

ldco2016 commented Jul 31, 2019

@slavikdenis , this:

Solution:
-Install Cocoa Pods
sudo gem install cocoapods
-In your Project Folder:
cd ios
pod install

is not a solution. I already have Cocoapods installed and ran pod install. In fact, the error I have above is what I got after I added new Targets to my XCode and ran a pod deintegrate cleaned the XCode and rebuilt it and then refactored the Podfile and then successfully ran pod install.

Afterwards, when I ran react-native run-ios, thats when I started getting the following error:

AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>

The file does indeed exist in my Pods/Headers/Public directory inside of the React/ folder that is inside of React-Core/. Any help would be appreciated. Here is the MVP that looks similar to what I have:

https://github.com/ldco2016/NFIBEngage

And this is the Podfile configuration it needs:

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'DEV' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for DEV
  # pod 'AppCenter/Push', '~> 1.3.0'
  pod 'AppCenter/Crashes', '~> 2.0.1'
  pod 'AppCenter/Analytics', '~> 2.0.1'
  pod 'AppCenterReactNativeShared', '~> 2.0.0'

  # Pods for NFIBEngage
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'NFIBEngageTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'NFIBEngage-tvOS' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for NFIBEngage-tvOS



end

target 'PROD' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for PROD
  # pod 'AppCenter/Push', '~> 1.3.0'
  pod 'AppCenter/Crashes', '~> 2.0.1'
  pod 'AppCenter/Analytics', '~> 2.0.1'
  pod 'AppCenterReactNativeShared', '~> 2.0.0'

  # Pods for NFIBEngage
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

end

target 'QA' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for QA
  # pod 'AppCenter/Push', '~> 1.3.0'
  pod 'AppCenter/Crashes', '~> 2.0.1'
  pod 'AppCenter/Analytics', '~> 2.0.1'
  pod 'AppCenterReactNativeShared', '~> 2.0.0'

  # Pods for NFIBEngage
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

end

target 'UA' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for UA
  # pod 'AppCenter/Push', '~> 1.3.0'
  pod 'AppCenter/Crashes', '~> 2.0.1'
  pod 'AppCenter/Analytics', '~> 2.0.1'
  pod 'AppCenterReactNativeShared', '~> 2.0.0'

  # Pods for NFIBEngage
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

end

If anyone can add the above configuration to that MVP and then run pod install && react-native run-ios and not get this error:

AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>

that is what I am trying to accomplish myself.

@vnanaware
Copy link

After install pod also not working same error occured

act/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@slavikdenis
Copy link

@ldco2016 well, for me it somehow worked. Please let us know, if you find the solution for your problem. Thanks

@ldco2016
Copy link

ldco2016 commented Jul 31, 2019

The solution was to correctly add multiple targets to my Podfile, which is done by using abstract_target, similar to what lifely did here:
CocoaPods/CocoaPods#4863 (comment).

@llr101
Copy link
Author

llr101 commented Aug 3, 2019

I see “scheme” in Xcode shows React(missing)

@mohmmadmoussa1988
Copy link

I see “scheme” in Xcode shows React(missing)

Did you find a solution for missing React in "scheme" ?

@ham118
Copy link

ham118 commented Sep 5, 2019

Facing the same problem "'React/RCTBridgeDelegate.h' file not found".

@celodauane
Copy link

You can fix this issue by installing the missing dependencies using pods.
These are the steps you should follow:

  • cd ios
  • pod install

After that, re-run the project. It should build with no errors.

@Moseqi
Copy link

Moseqi commented Sep 13, 2019

I see “scheme” in Xcode shows React(missing)

Did you find a solution for missing React in "scheme" ?

did you?

@llr101
Copy link
Author

llr101 commented Sep 13, 2019

I see “scheme” in Xcode shows React(missing)

Did you find a solution for missing React in "scheme" ?

did you?

I change the version from 0.60 to 0.59.10

@Moseqi
Copy link

Moseqi commented Sep 13, 2019

I see “scheme” in Xcode shows React(missing)
Did you find a solution for missing React in "scheme" ?
did you?

I change the version from 0.60 to 0.59.10

Is it a bug with v0.60? I am using 0.60.5.

@iamawaisakram
Copy link

I see “scheme” in Xcode shows React(missing)
Did you find a solution for missing React in "scheme" ?
did you?

I change the version from 0.60 to 0.59.10

Is it a bug with v0.60? I am using 0.60.5.

Same Version and same issue here as well!

@Moseqi
Copy link

Moseqi commented Sep 18, 2019

@iamawaisakram any solution?

@rvaitkus23
Copy link

in Header Search Paths you should add $(inherited). This has solved the problem for me. And if you would look at warnings after pod install it does indicate that.

@AGurindapalli
Copy link

@dvuvne solutions solved my problem

@tr3v3r
Copy link

tr3v3r commented Sep 25, 2019

@rvaitkus23 solution solved the issue! Thanks!

@ham118
Copy link

ham118 commented Sep 25, 2019

in Header Search Paths you should add $(inherited). This has solved the problem for me. And if you would look at warnings after pod install it does indicate that.

Followed these steps still throw the same error.

@ziyoshams
Copy link

ziyoshams commented Sep 26, 2019

Check your Scheme by going to Product -> Scheme -> Edit Scheme -> Build
and if you see React(missing) in in your scheme, you have to add React.xcodeproj manually.

  • On your Project Navigator (left panel with folders):
    • Click with two finger for the menu (anywhere).
    • Choose Add Files to "YOUR PROJECT NAME"
    • Navigate to node_modules/react-native/React and choose React.xcodeproj.
    • Clean your project and re-run.

Note: React.xcodeproj was removed from 0.61.

@AshishKapoor
Copy link

Facing the same problem "'React/RCTBridgeDelegate.h' file not found".

Quick fix:
$ cd ios && pod install

@dariuxmx
Copy link

@AshishKapoor it works, just need install pods.

@mauriciodeleonc
Copy link

You can fix this issue by installing the missing dependencies using pods.
These are the steps you should follow:

* cd ios

* pod install

After that, re-run the project. It should build with no errors.

This fixed issue for react native v. 0.61 and xcode v. 11.0 (11A420a)

@DaveLomber
Copy link

DaveLomber commented Oct 3, 2019

Same issue here with RN61 - React (missing)

pod install does not help

@pradhul-dev
Copy link

pradhul-dev commented Oct 3, 2019

The same issue here when upgrading from RN59.5 to RN0.61.1.

System:
OS: macOS Mojave 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
Memory: 111.38 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 1.19.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 23, 24, 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.1 => 0.61.1
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-rename: 2.4.1

fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@collamo
Copy link

collamo commented Apr 12, 2020

Thanks @VladosDosvidos! your solution worked for me.
XCode:11.4
React Native:0.62.2

@barrylachapelle
Copy link

Me too! Nice one @VladosDosvidos

@kas
Copy link

kas commented May 16, 2020

I followed these steps to fix the issue:

  • cd ios
  • pod install
  • Open .xcworkspace file with Xcode

@sanukumarNS
Copy link

sanukumarNS commented May 28, 2020

Let's say you had a Scheme A, you duplicated it to Scheme B

What I found happens when you run npm install is
For every scheme except A,
Build phases settings get changed to default

To fix this unfortunately,
Delete the Scheme B
Duplicate the original scheme(A) again and make the changes to make it your scheme B

Note: I recommend not adding any dependency manually as you may miss a few and keep wasting your time there.

@nihp
Copy link

nihp commented Jun 8, 2020

I have React with concentric circles, not a React shape of house.

If I add this does it works for me?
Screenshot 2020-06-08 at 3 12 10 PM

@nppull
Copy link

nppull commented Jun 15, 2020

If you guys are upgrading from 0.59.10 or below to 0.60.0 or above, the issue seems to be with the manual linked libraries, we need to remove all the manually libraries as show here and we should instead add these manually linked libraries to our podfile for example if you have react-native-vector-icons installed, your pod file with core packages should look something like this

target 'YourAppName' do

  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

#Add other pods here

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'


  post_install do |installer|
    installer.pods_project.targets.each do |target|

      targets_to_ignore = %w(React yoga)
      
      if targets_to_ignore.include? target.name
        target.remove_from_project
      end

    end
  end



  

  
end

after removing the libraries it should look some thing like this.
Screenshot 2019-11-11 at 7 56 02 PM

At last

cd ios
pod install 

i was able to solve this issue following these steps, hope it helps others.

save my life <3

@lucasfp13
Copy link

I see “scheme” in Xcode shows React(missing)

I could solve this upgrading my Cocoapods version (1.5.3 to the 1.9.3). Then, after a pod deintegrate && pod install, in Xcode > Scheme > Edit Scheme remove the React (missing) target and add the React with the target icon:

I have React with concentric circles, not a React shape of house.

If I add this does it works for me?
Screenshot 2020-06-08 at 3 12 10 PM

Clean and build your project and will fix the React related errors.

@VladosDosvidos
Copy link

@sanukumarNS Yes, your advice is also useful. Because I have two schemas in my project.

@Michael24884
Copy link

Still getting this error when archiving, on React 63.2

@rodrigofbm
Copy link

1+ year later and this still persist. Unfortunately this client doesn't want to move to Flutter yet

@Michael24884
Copy link

Not really a solution but I only managed to fix it by making a new React Native app with the same name and just copied and paste everything(IOS folder only). Pod install again. Again not the best solution but it ended up working.
I got this error when upgrading from 0.62 to 0.63

@raffibag
Copy link

In my experience, if you happen to install and uninstall the wrong npm package, for example, you may irreversibly mess up your React Native project. The likely culprit is that some small - yet critical - library is removed on uninstall. In these cases, a total rebuild of the project is required. Would be nice if there's a way to restore or rollback to a previous state.

@willbonde
Copy link

I have this problem after creating a brand new react-native project. I've gone through the miscellaneous suggestions in this thread, like running pod install, etc. Interestingly enough, I zipped up the entire project and transferred it to a friend's computer running the exact same version of Xcode (12.0.1). It built first try, with zero changes to the project or config. I'm wondering if the problem could be caused by an Xcode setting?

@BoKKeR
Copy link

BoKKeR commented Nov 10, 2020

Updating from rn0.62 to 0.63, dont forget to include every schema in your pods. Otherwise the pods will only work for the one main schema.

target 'myApp' do.... in your pods

react-native-community/upgrade-support#55

@mouhsnimohamed
Copy link

here is what I did to fix this issue:

  1. cd ios && xcodebuild clean
  2. pod init (if you don’t have podFile already)
  3. pod install

@JasonFehr
Copy link

Embarrassed to say I fought this problem for over an hour, eventually realizing that several commits earlier, I had deleted the tvOS targets in XCode without deleting the targets in the Podfile. This caused an error during pod install, but the phrasing of the error didn't make it clear that the pod install hadn't actually completed.

Thus, although I kept thinking I was running pod install, it wasn't actually happening, which resulted in this React/RCTBridgeDelegate.h' problem.

I doubt very much anyone else here is making such a silly mistake, but I thought I'd share anyway.

@yachaka
Copy link

yachaka commented Dec 31, 2020

Hurray!
After having troubles for multiples hours, I fixed my issue.

When going in Edit Scheme > My Scheme, I had React (missing).
I added React back (click [-] on React, click [+], search React), then I still had this error. 🤔
Then, I saw a comment that said that React must be at the top of the list (it got added on the bottom).

I moved React to the top of the list, and now the error disappeared. 🎉
But now I have ReactNativeNavigation.h not found 😂

Luchanso added a commit to Luchanso/meditation-app that referenced this issue Apr 8, 2021
@abdelhedydev
Copy link

abdelhedydev commented Apr 27, 2021

This solution was solved my problem
joltup/rn-fetch-blob#461 (comment)

@AroldoGoulart
Copy link

AroldoGoulart commented May 7, 2021

I've just close xcode, remove node_modules and yarn.lock or package-lock.json
and inside ios folder:

pod deintegrate && pod cache clean -all && pod install

after this just run xcode again and it works

@sunwooz
Copy link

sunwooz commented May 13, 2021

I'm currently on a lower version than react-native .60 so do not make use of pods.

I had to remove the podfiles and uninstall pods with

pod deintegrate project.xcodeproj

@Acousticdesk
Copy link

Definitely, not the greatest solution and is not applicable to everyone, however, these are the steps that helped me in my situation:

  • Remove the project repository
  • Clone it from the remote repository
  • Navigate to the project folder
  • npm install
  • cd ios
  • pod install
  • npm run ios

@AdamLee321
Copy link

I had the same issue, setting higher Deployment Target in the xcode project solved it in my case

Great find, my podfiles deployment target was 11.0 and my projects was set to 10.0. Thanks.

@FrozenPyrozen
Copy link

If you are running mac os on m1, this answer can help with it https://stackoverflow.com/a/68543052/11792060 , works for me

@FairWageFreelancing
Copy link

would you guys/gals PLEASE stop suggesting pod install - jesus.

@talaikis
Copy link

talaikis commented Sep 21, 2021

In my case, there were 2 causes of that, constant problems with XCode 12: 1) dropping libPods-<ap;pname>.a from deps, 2) duplicated app:name.plist out of nowhere.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 6, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Needs: Author Feedback Needs: Issue Template This issue does not make use of the Issue Template, and may be missing necessary information. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests