Notification texts go here Contact Us Buy Now!

CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore"

Problem:

CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore".

Solution 1:

  1. Identify the root cause: The issue stems from the GitHub repo specified in the Podfile.
  2. Update the GitHub repo to the latest compatible version:
    Replace
    pod 'PhoneNumberKit', :git => 'https://github.com/marmelroy/PhoneNumberKit'
    

    with
    pod 'PhoneNumberKit', :git => 'https://github.com/BTonny/PhoneNumberKit-3.6.0'
    

    This points to a repository containing the source files for version 3.6.0, which is compatible with the flutter_libphonenumber package.
  3. This temporary solution should resolve the dependency issue until the flutter_libphonenumber team resolves the compatibility issue.

Solution 2:

  1. Update the version of the phone_number dependency in the pubspec.yaml file.
  2. Change
    phone_number: ^2.0.0
    

    to
    phone_number: ^1.0.0
    

This solution may resolve the issue for some users.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.