acoutts / flutter_libphonenumber

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps. Includes a TextInputFormatter to allow real-time AsYouType formatting.
MIT License
59 stars 72 forks source link

Pod install error (ios) #59

Closed temcewen closed 9 months ago

temcewen commented 11 months ago

I believe this is the same thing that was happening on a previous issue:

[!] CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore": In Podfile: PhoneNumberKit (from https://github.com/marmelroy/PhoneNumberKit) was resolved to 3.7.3, which depends on PhoneNumberKit/PhoneNumberKitCore (= 3.7.3)

flutter_libphonenumber_ios (from `.symlinks/plugins/flutter_libphonenumber_ios/ios`) was resolved to 1.1.4, which depends on
  PhoneNumberKit/PhoneNumberKitCore (= 3.6.6)

Specs satisfying the PhoneNumberKit/PhoneNumberKitCore (= 3.7.3), PhoneNumberKit/PhoneNumberKitCore (= 3.6.6) dependency were found, but they required a higher minimum deployment target.

woelmer commented 10 months ago

If you get rid of pod "PhoneNumberKit", :git => "https://github.com/marmelroy/PhoneNumberKit" in your Podfile it fixed the issue for me. It was mentioned here that this is no longer necessary.

acoutts commented 9 months ago

Yup the trick from @woelmer should fix this.