谁能解释为什么 pod install 会删除 React。它还显示了产品中缺少的 React--> 编辑方案。
我需要任何好的解决方案
RCTBrigeModule.h 文件未找到错误?
我不知道如何解决这个问题。
在取消链接包并且不运行 pod install 之前
# 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 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
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'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
end
target 'AppTests' do
inherit! :search_paths
# Pods for testing
end
end
链接并运行 pod install 后
# 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