【问题标题】:No podspec found for `React-Core` in `../node_modules/react-native`在 `../node_modules/react-native` 中找不到 `React-Core` 的 podspec
【发布时间】:2020-02-19 12:33:07
【问题描述】:

我遇到了一个错误:

 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

【问题讨论】:

    标签: react-native cocoapods


    【解决方案1】:

    根据upgrade tool report,如果你的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' 
    

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

    pod 'React-Core', :path => '../node_modules/react-native/React'
    

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

    希望这对您有所帮助。如有疑问,请随意。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-06
      • 2021-10-20
      • 2021-06-22
      • 1970-01-01
      • 1970-01-01
      • 2021-06-28
      • 2020-03-24
      相关资源
      最近更新 更多