找不到React Native Navigation React / RCTRootView.h文件

问题描述 投票:0回答:1

enter image description here

我试着使用React Native Navigation参考这个指令https://wix.github.io/react-native-navigation/#/installation-ios

当我链接libReactNativeNavigation.a Xcode显示错误并且我不知道如何解决这个问题时,我坚持第3步!

这是我的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-native react-native-ios react-native-navigation
1个回答
0
投票

这是因为React-Native-Navigation是您项目的子项目,它与您通过cocoapods添加到项目中的React有依赖关系。

尝试将${BUILT_PRODUCTS_DIR}递归添加到ReactNativeNavigation.xcodeproj中的Build Settings - > FRAMEWORK_SEARCH_PATHS

© www.soinside.com 2019 - 2024. All rights reserved.