react-native - 在 `../node_modules/react-native` 中找不到 `React-Core` 的 podspec
问题描述
我收到一个错误:
No podspec found for `React-Core` in `../node_modules/react-native`
这是我的 Podfile:
target 'RNNativeOrientationInteractor' do
# Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native'
pod 'React-Core', :path => '../node_modules/react-native'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
解决方案
根据升级工具报告,如果你的 ReactNative 版本介于0.60.6 - 0.61.1
. React-Core.podspec
从
pod 'React-Core', :path => '../node_modules/react-native/React'
至
pod 'React-Core', :path => '../node_modules/react-native'
React-Core
但是对于以前的版本,将路径更改Podfile
为
pod 'React-Core', :path => '../node_modules/react-native/React'
为了确认这一点,Check path../node_modules/react-native/React/React-Core.podspec
相对于 Podfile 确实存在。
希望这对您有所帮助。随意怀疑。
推荐阅读
- react-redux - 要更新我需要重新加载页面的数据,我该如何避免这种情况?
- java - JavaFx:组合框表格单元格双击
- batch-file - 用批处理文件替换ini文件内容
- windows - 是否可以在 Windows 主机上容器化 Windows GUI 应用程序?
- jmeter - JMeter 中的 HTML 报告 - 修改
- java - 多用户登录方法还有其他解决方案吗?
- kotlin - 带有 iOS 的 Kotlin Multiplatform:“使用未声明的类型 'KotlinCoroutineContext'”
- bash - 如何在 docker 中使用 gulp 运行 node.js 并找到正确的 bashsrc
- plotly-dash - 将 SHAP 的 HTML 输出放入 Dash 输出布局回调中
- c - 编译成 exec 时如何保留 xcode 工作目录?