Closed tungakanui closed 1 year ago
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.7.10, on macOS 13.3.1 22E772610a darwin-arm64, locale en-VN) [!] Android toolchain - develop for Android devices (Android SDK version 33.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 14.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3) [✓] VS Code (version 1.78.2) [✓] Connected device (2 available) [✓] HTTP Host Availability
! Doctor found issues in 1 category.
Nice find - someone else reported a bug on it here: https://github.com/marmelroy/PhoneNumberKit/issues/643
It seems to have broken because we're depending on 3.5.9 and they pushed 3.5.10 overnight. I just published version 2.1.3 with the updated dependency so it works again.
You might have to pod update
after adding the latest pub version.
Hi @acoutts-nydig , I'm still seeing this issue. Creating a brand new minimal test project and depending on flutter_libphonenumber_ios: ^1.1.2
in pubspec.yaml is sufficient to cause.
[!] CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore":
In Podfile:
flutter_libphonenumber_ios (from `.symlinks/plugins/flutter_libphonenumber_ios/ios`) was resolved to 1.1.0, which depends on
PhoneNumberKit/PhoneNumberKitCore (= 3.5.10)
pod update doesn't fix it.
Thanks!
@rbarzel did you add the podfile entry as well from the readme?
Doh! No I didn't and that indeed solved it. Sorry for the churn. Thanks!
@acoutts-nydig do you have any guidance on how to use both flutter_libphonenumber
and phone_number in the same app? They seen to depend on different versions of PhoneNumberKitCore... Thank you
No unfortunately you’ll have to pick one or the other or try and force the app to use one version of the pod. Maybe you can add the pod to your podfile to override it
@rbarzel did you add the podfile entry as well from the readme?
where can I find the podfile entry from readme that u mentioned? I only found this flutter pub run melos bootstrap.
[!] CocoaPods could not find compatible versions for pod "PhoneNumberKit/PhoneNumberKitCore": In Podfile: PhoneNumberKit (from
https://github.com/marmelroy/PhoneNumberKit
) was resolved to 3.5.10, which depends on PhoneNumberKit/PhoneNumberKitCore (= 3.5.10)Specs satisfying the
PhoneNumberKit/PhoneNumberKitCore (= 3.5.10), PhoneNumberKit/PhoneNumberKitCore (= 3.5.9)
dependency were found, but they required a higher minimum deployment target.