找不到“React/RCTBridgeDelegate.h”文件 - React Native

bec*_*cky 6 ios react-native

我是本机反应新手,并且一直在创建一个新应用程序。我尝试将我的项目从 React Native 0.60 更新到 0.63。执行此操作时,我必须创建一个新的项目文件才能更新我的 cocoapods。完成此操作后,我厌倦了在 iOS 模拟器上运行我的应用程序,但出现错误。

在 Xcode 中打开我的项目时,出现以下错误。

错误

我不确定这是否与我的豆荚有关。在网上做了一些研究后,我无法找到这个问题的答案。

这是我的个人资料文件。

# Uncomment the next line to define a global platform for your project
 platform :ios, '10.0'

target 'Example' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Example

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

end

target 'Example-tvOS' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Example-tvOS

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

  target 'OneSignalNotificationServiceExtension' do
    # Comment the next line if you don't want to use dynamic frameworks
    use_frameworks!
  
    # Pods for OneSignalNotificationServiceExtension
    pod 'OneSignal', '>= 2.9.3', '< 3.0'
  end

end
Run Code Online (Sandbox Code Playgroud)

Ger*_*ano 0

就我而言,问题是 Xcode 的 iOS 与 Podfile 不同。举个例子:你的是: platform :ios, '10.0'

但在 Xcode 中可能会有所不同

使用 IOS 11.0 在我的目标上选项卡常规