-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[fluttter_tool] Set IPHONEOS_DEPLOYMENT_TARGET to 8 #36117
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
Conversation
Prevents this warning in xcode during build: `The iOS deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'Flutter')`
|
cc @jmagman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to force pods to 8.0 if the pod doesn't support it, or even worse force it down if it only supports a later version.
How about we add :inhibit_warnings to the pod install? I'm all for not clogging up my pristine project no-warning with deprecation warnings, etc from dependencies.
pod 'Flutter', :path => engine_dir, :inhibit_warnings => true
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])), :inhibit_warnings => true
And if you could add it to the following places to keep it all consistent that would be really helpful!
packages/flutter_tools/templates/cocoapods/Podfile-ios-swift: pod p[:name], :path => File.join(symlink, 'ios')
packages/flutter_tools/templates/cocoapods/Podfile-ios-objc: pod p[:name], :path => File.join(symlink, 'ios')
packages/flutter_tools/templates/cocoapods/Podfile-macos: pod p[:name], :path => File.join(symlink, 'macos')
The error message is saying that |
Actually, I just tried this and it doesn't suppress that warning. After reading CocoaPods/CocoaPods#7314 I don't really want to imply libraries support a higher version than they claim to, or worse claim they support a higher version, but I also really hate warnings in dependencies you have no power to fix. At a minimum, the the 8.0 version in the change doesn't match the version at the top. And now we're chasing a moving target of whatever Xcode decides is the minimum deploy version. Then the individual pod targets will inherit IPHONEOS_DEPLOYMENT_TARGET either from the Pods project from that Whatever we do in this Podfile should be duplicated in Podfile-ios-swift and Podfile-macos. |
@lookfirst What do you think about this proposal? |
|
I think that this value needs to be controlled by the end user, forcing it to 8.0 would not be good. It would break our project which uses API:s only available on iOS 12.0 and later. I've posted about this before, here are some relevant threads: #32791 (comment) |
@LinusU Would it work for your use-case if the pods did not have a deployment version, but instead inherited the value from the |
|
I just discovered that https://github.com/flutter/plugins/tree/master/packages/google_sign_in requires 9.0 (there was warnings in Xcode when I included it), so now I'm past 8 anyway. |
|
In order to move from 8 to 9, I had to edit the Podfile as well as the xcode project. It was a pain. If you can simplify it so that I just edit the Podfile, that would be great. |
Yes, that would be perfect 👍 |
@lookfirst Would you like me to take this over then? |
|
@jmagman Are you going to fix this in a separate PR? |
I was going to just take this one over. I started with: but it doubles down on the Podfile being a template, which goes against @xster's request for it to become dynamically generated here #9827 I need to find a mechanism to know if the app is a plugin example app AFTER the project is already generated, which there isn't right now AFAIK. |
Actually it looks like there's no way to transfer a PR to another fork. I will make a new one.
I guess that issue has been open awhile though and the Podfile are already templates, so we can add it to the list of behaviors that needs to be migrated if it ever becomes generated on |
|
Oh yeah, and the other issue is that the Podfile isn't added on create, it's actually added when the first plugin is added. So at that point |
|
#9827 indeed probably needs a re-summary at the bottom. Based the issues I originally wanted us to fix, likely 75% of it is already done. |
|
@jmagman What is the status of this PR? Can in be closed? |
|
I documented the issue and proposed solutions in #40109. Closing this PR. |


Description
Prevents this warning in xcode during build:
The iOS deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'Flutter')///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?