Prevent issue for others.
Hopefully, it will help someone.
In case of this issue:
[!] No podspec found for `react-native-async-storage` in `../node_modules/@react-native-community/async-storage`
Just check out this commit and at Podfile change line:
Form
pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage'
To
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
To add to @zmefz comment, don't forget to update your pods after changing the pod name.
Just in case, I would suggest to remove Podfile.lock, as well as the Pods folder, do a complete pod install from scratch, clean the build folder, and rebuild the project. This way, you are sure not to have any leftover reference to the wrongly named react-native-async-storage pod in your project.
Thanks @zmefz @lightman73
We've got a Troubleshooting guide now, so we can reference this whenever common issues arise
thanks for the life saver <3
To anyone running into this issue with a monorepo, make sure you're not hoisting @react-native-community/async-storage
Most helpful comment
To anyone running into this issue with a monorepo, make sure you're not hoisting
@react-native-community/async-storage