在`../node_modules/react-native`中找不到`React-Core`的podspec. [英] No podspec found for `React-Core` in `../node_modules/react-native`
本文介绍了在`../node_modules/react-native`中找不到`React-Core`的podspec.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到一个错误:
No podspec found for `React-Core` in `../node_modules/react-native`
这是我的Podfile:
And this is my 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
推荐答案
According to upgrade tool report, If your ReactNative Version between 0.60.6 - 0.61.1
. React-Core.podspec
was moved from
pod 'React-Core', :path => '../node_modules/react-native/React'
到
pod 'React-Core', :path => '../node_modules/react-native'
但对于以前的版本,请将 Podfile
中的 React-Core
路径更改为
But for previous versions, Change your React-Core
path in Podfile
to
pod 'React-Core', :path => '../node_modules/react-native/React'
为了确认这一点,请检查路径 ../node_modules/react-native/React/React-Core.podspec
相对于Podfile是否确实存在.
In order to confirm that, Check path ../node_modules/react-native/React/React-Core.podspec
is really exists relative to Podfile.
希望这对您有所帮助.放心怀疑.
Hope this helps you. Feel free for doubts.
这篇关于在`../node_modules/react-native`中找不到`React-Core`的podspec.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文