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

Unable to pod update #48

Closed MingSern closed 1 year ago

MingSern commented 1 year ago

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.3, on macOS 13.4 22F66 darwin-arm64, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

Package version

flutter_libphonenumber: ^2.1.3

Expected

Actual

ghost commented 1 year ago

Make sure you added the entry to your podfile like the readme outlines.

MingSern commented 1 year ago

@acoutts-nydig So we need to install melos and bootstrap?

MingSern commented 1 year ago

I'll just put a tag for now.

pod "PhoneNumberKit", :git => "https://github.com/marmelroy/PhoneNumberKit", :tag => "3.5.10"
icodelifee commented 1 year ago

I'll just put a tag for now.

pod "PhoneNumberKit", :git => "https://github.com/marmelroy/PhoneNumberKit", :tag => "3.5.10"

but this isnt working


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

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

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

Im getting the same error even after putting the tag

acoutts commented 1 year ago

can you please try the latest version just published?

icodelifee commented 1 year ago

can you please try the latest version just published?

Im on flutter_libphonenumber: ^2.1.4

acoutts commented 1 year ago

Did you try pod update?

icodelifee commented 1 year ago

Did you try pod update?

issue happens when i run pod update. Im using codemagic for building.

icodelifee commented 1 year ago

is there a way i can downgrade @acoutts ?

acoutts commented 1 year ago

this is odd, i was able to upgrade and use the latest version with the example app.. is it an environment issue in codemagic?

icodelifee commented 1 year ago

Im sure that codemagic pulls all the deps and runs pod install everytime i run the build

icodelifee commented 1 year ago

Can it be an issue with Podfile.lock?

icodelifee commented 1 year ago

ill prolly get my macbook back tommorow, until then if there is way to downgrade and use it would be awesome

acoutts commented 1 year ago

I'm not sure on your codemagic setup, but doing a pod update should update the lock file and work after that. Are you able to reproduce the issue with the example app? Then you can narrow down is it an issue with this package, your project, or codemagic.

acoutts commented 1 year ago

ill prolly get my macbook back tommorow, until then if there is way to downgrade and use it would be awesome

docs here: https://dart.dev/tools/pub/dependencies#dependency-overrides

icodelifee commented 1 year ago

let me fork and check

icodelifee commented 1 year ago

ill prolly get my macbook back tommorow, until then if there is way to downgrade and use it would be awesome

docs here: dart.dev/tools/pub/dependencies#dependency-overrides

which version of package uses 3.6.0

acoutts commented 1 year ago

check the git tags to see, it will be there

BenevidesLecontes commented 1 year ago

@acoutts what's the solution for this issue? I'm having this issue too

MingSern commented 1 year ago

@BenevidesLecontes @icodelifee For whoever that is still facing this issue, it's probably because of the dependency's version. Since the error says which depends on PhoneNumberKit/PhoneNumberKitCore (= 3.6.0). In your Podfile, your need to change the version tag to be 3.6.0 as such

pod "PhoneNumberKit", :git => "https://github.com/marmelroy/PhoneNumberKit", :tag => "3.6.0" # here
BenevidesLecontes commented 1 year ago

hi @MingSern thank you, I already did that and is working, @acoutts i think this not the best solution this issue needs to remain open until a better solution. In our company we are developing plugins that depend on this plugin, but everyone who uses our plugins has to configure this in the podfile.