I started getting this error:
In Podfile:
React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
Specs satisfying the `React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)` dependency were found, but they required a higher minimum deployment target.
For me I started a project a few months back and then didn't get time to work on it. A few month later things were outdated so I decided to updated my all libraries in my package.json
file to latest. Without taking careful measures as the project only had one screen but there was firebase configured as well. So, after updating react native and other packages to latest versions I ran pod insall
and started getting this error for React-RCTActionSheet
which might be a different name but similar error for others.
The solution is general and should work for failures other than React-RCTActionSheet
.
- First thing to see is if your
platform :ios, '12.4'
(For me it was 11.0) version is not low. Try to change it to a higher version also in XCode > Target > Build Settings > Change deployment version to a bit higher one. - After doing that make sure you have your
npm install
already finished. Then deletePods
folder andPodfile.lock
and thencd ios
and run thispod install --repo-update
- (optional) Clean the derived data folder
rm -rf ~/Library/Developer/Xcode/DerivedData
and opening in XCode and doingcmd + shift + k
might help.
Doing so the pods started to install.