【问题标题】:Unable to find a specification for `React-Core` depended upon by `UMReactNativeAdapter`无法找到“UMReactNativeAdapter”依赖的“React-Core”规范
【发布时间】:2020-07-05 20:34:27
【问题描述】:

遇到错误,

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.13.0`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] Unable to find a specification for `React-Core` depended upon by `UMReactNativeAdapter`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

我试过了,

pod setup
pod install
pod install --repo-update

另外,我再次卸载/安装了cocoapods,但仍然出现上述错误。

【问题讨论】:

  • 遇到同样的问题

标签: xcode react-native cocoapods


【解决方案1】:

您可以更改您的 UMReactNativeAdapter podspec 文件,

s.dependency 'React-Core'

  • 将“-”改为“/”

查看此类似问题。

https://github.com/joltup/rn-fetch-blob/issues/402#issuecomment-513077800

【讨论】:

  • 谢谢!这有帮助!但是有没有办法在 poffile 中创建一个 React-Core 依赖项而不是更改几个 podspecs 包?
  • 尝试降级使用 'React-Core' 的库,慢慢降级。
【解决方案2】:

依赖React-Core 只不过是开发人员重命名的同一个 React 依赖。

您需要搜索将 React 列为其依赖项而不是 React-Core 的 UMReactNativeAdapter 版本

【讨论】:

    【解决方案3】:

    我厌倦了一次又一次地遇到同样的错误

    基本上,需要做的是手动添加到您的Podfile 缺少的 pod

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

    您可能需要以这种方式添加更多 pod,以下是可能缺少的 pod 的有用列表: https://github.com/facebook/react-native/issues/26310#issuecomment-534632566

    【讨论】:

      猜你喜欢
      • 2019-04-11
      • 1970-01-01
      • 1970-01-01
      • 2022-06-14
      • 2017-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-25
      相关资源
      最近更新 更多