react-native-document-picker: CocoaPods could not find compatible versions
[!] CocoaPods could not find compatible versions for pod “react-native-document-picker”:
In Podfile:
react-native-document-picker (from ../node_modules/react-native-document-picker)
Specs satisfying the react-native-document-picker (from …/node_modules/react-native-document-picker) dependency were found, but they required a higher minimum deployment target.
Podfile platform :ios, ‘9.0’
“version”: “3.5.1”
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 27 (4 by maintainers)
I make this steps to work:
yarn add react-native-document-picker@3.4.0cd ios && pod deintegrate && pod install --repo-updateyarn add react-native-document-pickercd ios && pod install --repo-updatenot sure what is wrong, I cannot reproduce this, maybe try
pod install --repo-updateor https://github.com/CocoaPods/cocoapods-deintegrateHello, perhaps this should’ve been communicated more clearly in release notes; react native itself targets iOS 10 or newer, we just aligned this with RN.
When you bump from 9.0 to 10.0 I assume the issue will go away.
hello, you need to bump the min version in the Podfile, usually it’s placed at the top. Des that help?
@vonovak I tried it too but same issue. I cleaned project (cache also) still the same. I changed the version from
/node_modules/react-native-document-picker/react-native-document-picker.podspecthen it works but I believe it’s not a good idea.
cd ios && pod deintegrate && pod install --repo-updateThis is what solved it for me.