React native TurboModuleRegistry.getEnforcement';联网';找不到。验证此名称的模块是否已在本机二进制文件中注册

React native TurboModuleRegistry.getEnforcement';联网';找不到。验证此名称的模块是否已在本机二进制文件中注册,react-native,react-native-ios,React Native,React Native Ios,在解决了很多构建问题后,我的应用程序最终成功构建。但现在我正在解决这个问题。在应用程序成功构建并开始在iOS模拟器上启动后,我看到了这一点 我的播客文件: platform :ios, '9.0' use_frameworks! target 'myProject' do pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequire

在解决了很多构建问题后,我的应用程序最终成功构建。但现在我正在解决这个问题。在应用程序成功构建并开始在iOS模拟器上启动后,我看到了这一点

我的播客文件

platform :ios, '9.0'
use_frameworks!

target 'myProject' do

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 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  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/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'

  pod 'RNCharts', :path => '../node_modules/react-native-charts-wrapper'

  pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec'

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


   pod 'Firebase/Core', '~> 6.3.0'

    pre_install do |installer|
        installer.analysis_result.specifications.each do |s|
            s.swift_version = '5.0' unless s.swift_version
        end
    end

end

反应本机cli:2.0.1 本机反应:0.61.1 椰子荚类:1.8.4


有没有办法解决这个问题?

我也犯了同样的错误,但都是我的错。我在使用平台API时使用了“=”,而不是“==”。这污染了全球环境。我建议您重新检查代码以解决此错误。

您是否解决了此问题?