`React/RCTBridgeModule.h` file not found

后端 未结 21 2321
执笔经年
执笔经年 2020-11-30 00:31

Getting this error while building a react-native iOS app on xcode.

Started getting this error after npm install and rpm linking react-native-fs library. But

21条回答
  •  佛祖请我去吃肉
    2020-11-30 00:35

    This error appeared for me after I ran pod install command for the new dependencies. Along with those, React had also been installed. Therefore probably Xcode was confused for path. I removed these lines from PodFile and error was gone. Please note that those removed from here were already linked in Xcode.

    target 'app' do
    
      pod 'GoogleMaps'
      pod 'Firebase/Auth', '~> 6.3.0'
      pod 'Firebase/Database', '~> 6.3.0'
    
      # Removed four pods below and it worked.
    
      pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'
    
      pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'
    
      pod 'react-native-image-resizer', :path => '../node_modules/react-native-image-resizer'
    
      pod 'RNFS', :path => '../node_modules/react-native-fs'
    
      end
    

提交回复
热议问题