Open zakblacki opened 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:
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:
You have to set it on your podfile lower version
You have to set it on your podfile lower version
@zakblacki what do you mean by a lower version? The deployment target to 11 ?
You have to set it on your podfile lower version
If your time allows, a demonstration will be really helpful. Thanks : )
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.
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
![]()
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
Worked 💯
Added the line in Podfile
Thanks @zakblacki 👍
Also, I am using in_app_webview so I had to do couple of more changes but finally the app compiled.
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