Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS error : Compiling for iOS 11.0, but module 'PhoneNumberKit' has a minimum deployment target of iOS 12.0: #415

Open
bensonarafat opened this issue Dec 9, 2023 · 1 comment

Comments

@bensonarafat
Copy link

Describe the bug
If you are getting this error when using the package for IOS app. that Compiling for IOS 11.0 but module 'PhoneNumberKit' has a minimum deployment target of 12.0..

This is because intl_phone_number_input depends on plugin_libphonenumber

Issues have been raised about this error and a PR but this has not been merged.

So, my way around was to do a temporary fix by doing this on my ios/Podfile file

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
# START - Fix
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
# END - Fix
    end
  end
end

So this is my solution... OR i open a PR here.

@jhoncke2
Copy link

I implemented this change and now the error message is "Cannot find type 'phoneNumberKit' in scope"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants