首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在`../node_modules/react-native`中找不到`React-Core`的podspec

在`../node_modules/react-native`中找不到`React-Core`的podspec
EN

Stack Overflow用户
提问于 2020-02-19 20:33:08
回答 1查看 290关注 0票数 0

我得到一个错误:

代码语言:javascript
复制
 No podspec found for `React-Core` in `../node_modules/react-native`

这是我的Podfile:

代码语言:javascript
复制
    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
EN

回答 1

Stack Overflow用户

发布于 2020-02-20 12:00:07

根据upgrade tool report的说法,如果你的ReactNative版本在0.60.6 - 0.61.1React-Core.podspec已从

代码语言:javascript
复制
pod 'React-Core', :path => '../node_modules/react-native/React'

代码语言:javascript
复制
pod 'React-Core', :path => '../node_modules/react-native' 

但对于以前的版本,请将Podfile中的React-Core路径更改为

代码语言:javascript
复制
pod 'React-Core', :path => '../node_modules/react-native/React'

为了确认这一点,请检查路径../node_modules/react-native/React/React-Core.podspec相对于Podfile是否确实存在。

希望这对你有帮助。请不要有疑问。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60300493

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档