说明:升级到最新版本后,任何人都可以使用本机最新版本(0.61.5)成功构建应用程序

时间:2019-11-27 06:08:13

标签: react-native react-native-android react-native-ios

我有一个澄清。我正在尝试升级我的本机版本。但是,它仍然显示运行时错误。任何人都可以毫无问题地构建react-native(0.61.5)。

我们很多人都面临

React / RCTBridgeModule.h'文件未找到的问题。尚无解决方案。所以我转向了0.60.0。任何人都有好的解决方案。

In file included from /Applications/App/ios/helloworld/AppDelegate.m:11:
../node_modules/bugsnag-react-native/cocoa/BugsnagReactNative.h:3:9: fatal error: 'React/RCTBridgeModule.h' file not found

注意:从ios文件夹安装Pod,清理Pod和Xcode,我也尝试了许多解决方案。对我没有任何帮助。

  

我之前的Podfile

# Uncomment the next line to define a global platform for your project
#platform :ios, '9.0'
#require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
pod 'Fabric'
pod 'Crashlytics'

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

  # Pods for App

  target 'App-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
    #pod 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'
    #pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

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

    pod 'react-native-camera', :path => '../node_modules/react-native-camera'

    pod 'RNImageRotate', :path => '../node_modules/react-native-image-rotate'

    pod 'RNShare', :path => '../node_modules/react-native-share'

    pod 'RNViewShot', :path => '../node_modules/react-native-view-shot'

    pod 'RNFS', :path => '../node_modules/react-native-fs'

    pod 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'

  end

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

end
  

现在我的Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
pod 'Fabric'
pod 'Crashlytics'

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

  # Pods for App

  target 'App-tvOSTests' do
    inherit! :search_paths
    # Pods for testing

  end

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

end

0 个答案:

没有答案
相关问题