React-native-document-picker: CocoaPods could not find compatible versions

Created on 11 Jun 2020  路  13Comments  路  Source: rnmods/react-native-document-picker

[!] 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"

Most helpful comment

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

All 13 comments

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

It is not. @vonovak

Screen Shot 2020-06-12 at 15 25 38

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.

what does your podfile look like?

platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

def add_flipper_pods!(versions = {})
  versions['Flipper'] ||= '~> 0.33.1'
  versions['DoubleConversion'] ||= '1.1.7'
  versions['Flipper-Folly'] ||= '~> 2.1'
  versions['Flipper-Glog'] ||= '0.3.6'
  versions['Flipper-PeerTalk'] ||= '~> 0.0.4'
  versions['Flipper-RSocket'] ||= '~> 1.0'

  pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug'

  # List all transitive dependencies for FlipperKit pods
  # to avoid them being linked in Release builds
  pod 'Flipper', versions['Flipper'], :configuration => 'Debug'
  pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug'
  pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug'
  pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug'
  pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug'
  pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug'
  pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
end

# Post Install processing for Flipper
def flipper_post_install(installer)
  installer.pods_project.targets.each do |target|
    if target.name == 'YogaKit'
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.1'
      end
    end
  end
end

target 'dfuMobile' do
  # Pods for dfuMobile
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'dfuMobileTests' do
    inherit! :complete
    # Pods for testing
  end

  use_native_modules!

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  add_flipper_pods!
  post_install do |installer|
    flipper_post_install(installer)
  end
end

target 'dfuMobile-tvOS' do
  # Pods for dfuMobile-tvOS

  target 'dfuMobile-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

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

I tried it on fresh project and works good. With no problem. Probably my current project corrupted.

I make this steps to work:

  1. Rollback to 3.4.0 version: yarn add [email protected]
  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

hello, you need to bump the min version in the Podfile, usually it's placed at the top. Des that help?

work for me, thanks.

I make this steps to work:

  1. Rollback to 3.4.0 version: yarn add [email protected]
  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

Thanks, this is helping me

edit podfile.lock


  • Flipper (0.54.0):

    • Flipper-Folly (~> 2.2)

    • Flipper-RSocket (~> 1.1)

    • Flipper-DoubleConversion (1.1.7)

    • Flipper-Folly (2.5.0):


Screen Shot 2021-02-13 at 16 27 43

I make this steps to work:

  1. Rollback to 3.4.0 version: yarn add [email protected]
  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

It works for me, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johuder33 picture johuder33  路  5Comments

stsiushkevich picture stsiushkevich  路  7Comments

rajeshkos picture rajeshkos  路  6Comments

andrey-shostik picture andrey-shostik  路  9Comments

roadev picture roadev  路  3Comments