Problem:
CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore".
Solution 1:
- Identify the root cause: The issue stems from the GitHub repo specified in the Podfile.
- Update the GitHub repo to the latest compatible version:
Replace
withpod 'PhoneNumberKit', :git => 'https://github.com/marmelroy/PhoneNumberKit'
This points to a repository containing the source files for version 3.6.0, which is compatible with the flutter_libphonenumber package.pod 'PhoneNumberKit', :git => 'https://github.com/BTonny/PhoneNumberKit-3.6.0'
- This temporary solution should resolve the dependency issue until the flutter_libphonenumber team resolves the compatibility issue.
Solution 2:
- Update the version of the phone_number dependency in the pubspec.yaml file.
- Change
tophone_number: ^2.0.0
phone_number: ^1.0.0
This solution may resolve the issue for some users.