Home > Blockchain >  React-Native - iOS - CocoaPods could not find compatible versions for pod "OpenSSL-Universal&qu
React-Native - iOS - CocoaPods could not find compatible versions for pod "OpenSSL-Universal&qu

Time:12-19

I want to run a "pod install". I get the warning "[!] use_flipper is deprecated, use the flipper_configuration option in the use_react_native function"

So i replace the line "use_flipper!" to "use_flipper!({ 'Flipper-Folly' => '2.3.0' })" in my Podfile.

After this i removed the lock-File and run a "pod install" again.

I get the error

[!] CocoaPods could not find compatible versions for pod "OpenSSL-Universal":
  In Podfile:
    Flipper-Folly (= 2.3.0) was resolved to 2.3.0, which depends on
      OpenSSL-Universal (= 1.0.2.20)

    OpenSSL-Universal (= 1.1.1100)

Specs satisfying the `OpenSSL-Universal (= 1.1.1100), OpenSSL-Universal (= 1.0.2.20)` dependency were found, but they required a higher minimum deployment target.

My deployment target for iOS is "13.0". I have changed my deployment target but without any solution. Can someone help me?

My podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.0'
install! 'cocoapods', :deterministic_uuids => false

target 'XXApp' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  pod 'react-native-beacons-manager', :path => '../node_modules/react-native-beacons-manager'

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

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_flipper!({ 'Flipper-Folly' => '2.3.0' })

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

CodePudding user response:

add this line in your pod file:

pod 'OpenSSL-Universal'

replace this line

  use_flipper!({ 'Flipper-Folly' => '2.3.0' })

with

  use_flipper!

delete podfile.lock and pods folder, then run

pod install

CodePudding user response:

@Jatin Bhuva

This is my output after i add "pod 'OpenSSL-Universal', '~>1.0.2.20'" to my podfile, deleted .lock and /Pods and run "pod install".

[!] CocoaPods could not find compatible versions for pod "OpenSSL-Universal":
  In Podfile:
    OpenSSL-Universal (= 1.1.1100)

    OpenSSL-Universal (~> 1.0.2.20)

None of your spec sources contain a spec satisfying the dependencies: `OpenSSL-Universal (~> 1.0.2.20), OpenSSL-Universal (= 1.1.1100)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

[!] use_flipper is deprecated, use the flipper_configuration option in the use_react_native function

[!] There are duplicate dependencies on `OpenSSL-Universal` in `Podfile`:

- OpenSSL-Universal (~> 1.0.2.20)
- OpenSSL-Universal (= 1.1.1100)

My Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.0'
install! 'cocoapods', :deterministic_uuids => false

target 'XXApp' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  pod 'OpenSSL-Universal', '~>1.0.2.20'
  pod 'react-native-beacons-manager', :path => '../node_modules/react-native-beacons-manager'

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

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_flipper!({ 'Flipper-Folly' => '2.3.0' })

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end
  • Related