React native 未找到React本机导航React/rctroutview.h文件

React native 未找到React本机导航React/rctroutview.h文件,react-native,react-native-ios,react-native-navigation,React Native,React Native Ios,React Native Navigation,我正在尝试使用本机导航来参考此说明 当我链接libReactNativeNavigation时,我停留在第3步。一个Xcode显示错误,我不知道如何解决这个问题 这里是我的package.json "dependencies": { "react": "~16.2.0", "react-native": "~0.51.0", "react-native-navigation" : "1.1.428" } 我的吊舱文件 source 'https://github

我正在尝试使用本机导航来参考此说明

当我链接libReactNativeNavigation时,我停留在第3步。一个Xcode显示错误,我不知道如何解决这个问题

这里是我的package.json

"dependencies": {
    "react": "~16.2.0",
    "react-native": "~0.51.0",
    "react-native-navigation" : "1.1.428"

  }
我的吊舱文件

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '10.0'

target 'MyApp' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for React
  pod 'React', :path => '../js/node_modules/react-native', :subspecs => [
  'Core',
  'CxxBridge', # Include this for RN >= 0.47
  'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
  'RCTImage',
  'RCTNetwork',
  'RCTText',
  'RCTWebSocket',
]
   # Explicitly include Yoga if you are using RN >= 0.42.0
  pod "yoga", :path => "../js/node_modules/react-native/ReactCommon/yoga"

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../js/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'GLog', :podspec => '../js/node_modules/react-native/third-party-podspecs/GLog.podspec'
  pod 'Folly', :podspec => '../js/node_modules/react-native/third-party-podspecs/Folly.podspec'

这是因为React本机导航是项目的一个子项目,它与React有依赖关系,您通过cocoapods将React添加到项目中

尝试在ReactNativeNavigation.xcodeproj中添加
${builded\u PRODUCTS\u DIR}
递归到生成设置->框架搜索路径