无法找到“UMReactNativeAdapter”依赖的“React-Core”规范

iRe*_*act 4 xcode cocoapods react-native

低于错误,

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.
Run Code Online (Sandbox Code Playgroud)

我试过,

pod setup
pod install
pod install --repo-update
Run Code Online (Sandbox Code Playgroud)

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

Rav*_*ara 10

我遇到了与“React-RCTFabric”相同的错误,如下所示。

Unable to find a specification for `React-RCTFabric` depended upon by `RNSVG`
Run Code Online (Sandbox Code Playgroud)

我通过启用标志来解决这个fabric_enabled问题Podfile

:fabric_enabled => true,
Run Code Online (Sandbox Code Playgroud)

  • 我有同样的错误,升级react-native-svg解决了它。 (2认同)

小智 6

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

s.dependency '反应核心'

  • 改成 '/'

看看这个类似的问题。

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