question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Podspec s.dependency error: Unable to find a specification `React-Core`

See original GitHub issue

Current behavior

[!] Unable to find a specification for `React-Core` depended upon by `RNCAsyncStorage`

Expected behavior

Run pod install successfully

Repro steps

1. react native cli init using latest RN
2. pod install async-storage

Environment

  • Async Storage version: 1.12.1
  • React-Native version:0.63.3
  • Platform tested: IOS
  • Logs/Error that are relevant:

Current workaround from https://github.com/joltup/rn-fetch-blob/issues/402#issuecomment-513077800 Use patch-package to apply a quick patch.

Change node_modules/@react-native-community/async-storage/RNCAsyncStorage.podspec:

+  s.dependency 'React/Core'
-  s.dependency 'React-Core'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dishantwaliacommented, Oct 14, 2020

I have figure out one solution for project which is running on RN version <=0.62 Change “@react-native-community/async-storage”: version to 1.11.0,@react-native-community/async-storage”: “1.11.0”,

It has different stream for React in podspec file

node_modules/@react-native-community/async-storage/RNCAsyncStorage.podspec s.dependency 'React'

1reaction
tido64commented, Oct 23, 2020

@wangxxxb, does changing it to React work for you as well?

-  s.dependency 'React-Core'
+  s.dependency 'React'

It looks like it was changed to fix autolinking in Xcode 12 in #442 so I’m not sure it’s right either way. Looking at react-native source, I can’t find any references to React/Core anywhere.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to find a specification for `React-Core` depended upon ...
Analyzing dependencies Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec` ...
Read more >
React Native SDK Troubleshooting - Visual Studio App Center
This error appears when RN core libraries aren't referenced correctly, ... Analyzing dependencies [!] Unable to find a specification for ...
Read more >
Unable to find a specification `React-Core`_七元八角oooo的博客
问题: react-native 项目中安装@react-native-community/async-storage 出现报错信息: Podspec s.dependency error: Unable to find a ...
Read more >
Unable to find a specification for `React-Core` depended upon ...
React-Core is outdated and has been renamed to React. I have added the following lines to the bottom of my Podfile under ios...
Read more >
Podspec s.dependency error: Unable to find a specification ...
Podspec s.dependency error: Unable to find a specification `React-Core`,问题:react-native项目中安装@react-native-community/async-storage ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found