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

Error while running in iOS with the latest flutter SDK 1.22.1 #9

Closed
bharathiselvan opened this issue Nov 2, 2020 · 8 comments
Closed

Comments

@bharathiselvan
Copy link

Getting the below error in iOS

error: compiling for iOS 8.0, but module 'PhoneNumberKit' has a minimum deployment target of iOS 9.0: .....PhoneNumberKit/PhoneNumberKit.framework/Modules/PhoneNumberKit.swiftmodule/arm64-apple-ios.swiftmodule
import PhoneNumberKit
^

@acoutts
Copy link
Owner

acoutts commented Nov 2, 2020

You need to update your app for iOS 9.0 minimum. This was a recent change in flutter and is now the minimum supported version.

@acoutts
Copy link
Owner

acoutts commented Nov 2, 2020

@bharathiselvan
Copy link
Author

Thanks for the quick response..
But this doesn't solve my problem..
I am facing this issue even with a new project... In my old project, other flutter packages are working without any issues and when i add this package, i am getting the issue..

@acoutts
Copy link
Owner

acoutts commented Nov 2, 2020

The error error: compiling for iOS 8.0 means your project is targeting iOS 8.0 though. Are you using the latest Xcode? You can no longer select 8.0 in the latest Xcode.

@bharathiselvan
Copy link
Author

I downloaded the package source code and set the platform version of the package to 9.0 and it got fixed.
Updated s.platform = :ios, "8.0" to s.platform = :ios, "9.0" in flutter_libphonenumber.podspec file

@acoutts
Copy link
Owner

acoutts commented Nov 2, 2020

Ah I see now you're right! ok let me patch it.

@bharathiselvan
Copy link
Author

okay.. thanks..

@acoutts
Copy link
Owner

acoutts commented Nov 2, 2020

Just published 0.3.11 to fix this.

@acoutts acoutts closed this as completed Nov 2, 2020
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