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)

Most upvoted comments

I make this steps to work:

  1. Rollback to 3.4.0 version: yarn add react-native-document-picker@3.4.0
  2. Reinstall pods: cd ios && pod deintegrate && pod install --repo-update
  3. Update to version 3.5.1: yarn add react-native-document-picker
  4. Update pods without deintegrate: cd ios && pod install --repo-update

not sure what is wrong, I cannot reproduce this, maybe try pod install --repo-update or https://github.com/CocoaPods/cocoapods-deintegrate

Hello, 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.podspec

  s.platform        = :ios, "9.0"

then it works but I believe it’s not a good idea.

cd ios && pod deintegrate && pod install --repo-update This is what solved it for me.