natintosh / intl_phone_number_input

MIT License
163 stars 490 forks source link

Not compatible with xcode 15 phonenumberkit deployment target 12 #408

Open zakblacki opened 10 months ago

zakblacki commented 10 months ago

despite best effort trying to update phonenumberkit pods looks like issue comes from this package it's using old version which is causing compatibility issue

Compiling for iOS 11.0 but module PhoneNumberKit has a minimum deployment target of 12.0

so workaround would be to use a lower version of phonenumberkit 3.6.8 or find another package

hitik-logistifie commented 10 months ago

Hey @zakblacki how did you manage to use a lower version of phonenumberkit. I've recently updated xcode to 15 the package doesn't work anymore error: Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'PhoneNumberKit' has a minimum deployment target of iOS 12.0:

m-amin commented 10 months ago

Hi, has anyone solved this issue? I have the same problem with XCode Version 14.3.1. I changed deployment target to 12.1 but still have this issue:

Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'PhoneNumberKit' has a minimum deployment target of iOS 12.0:

zakblacki commented 10 months ago

You have to set it on your podfile lower version

m-amin commented 10 months ago

You have to set it on your podfile lower version

@zakblacki what do you mean by a lower version? The deployment target to 11 ?

hitik-logistifie commented 10 months ago

You have to set it on your podfile lower version

If your time allows, a demonstration will be really helpful. Thanks : )

hitik-logistifie commented 10 months ago
Screenshot 2023-10-10 at 4 42 29 PM

If you're suggesting to lower the version here, it is not an option for me. I think xcode 15 is not supporting iOS < 12.

zakblacki commented 10 months ago

add this line on your podfile

pod 'PhoneNumberKit/PhoneNumberKitCore', '~> 3.6.0' on your project terminal do flutter clean flutter pub get cd ios pod cache clean pod install or pod update

Screenshot 2023-10-10 at 4 42 29 PM

If you're suggesting to lower the version here, it is not an option for me. I think xcode 15 is not supporting iOS < 12.

you can write manually 11.0

hitik-logistifie commented 10 months ago

Worked 💯

Added the line in Podfile

Screenshot 2023-10-11 at 11 19 08 AM

Thanks @zakblacki 👍

Also, I am using in_app_webview so I had to do couple of more changes but finally the app compiled.