【发布时间】:2020-03-24 01:31:28
【问题描述】:
谁能解释为什么 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
【问题讨论】:
-
您要升级到 0.60+ 吗?
-
是的,我正在尝试超过一周
-
我有一个关于升级后生成的大文件的一般性问题。在 react-native 升级后,我发现了像 ios/Index/Datasource/something. 这样的大文件。这些文件有什么用。我需要提交这个还是需要搬入 .gitignore。你能解释一下为什么会生成它吗?
标签: react-native react-native-ios podfile podfile-lock