Skip to content

[google_maps_flutter] iOS Swift migration #119108

Closed
flutter/packages
#12768

Description

@hellohuanlin

Please refer to this umbrella issue for more details.

One of the larger plugins.

It has pretty low test coverage, so will need many backfilling tests.

Please don't forget to backfill tests to reduce the risk of regression, as explained in the wiki.

Activity

  1. changed the title [-][google_maps] iOS Swift migration[/-] [+][google_maps_flutter] iOS Swift migration[/+] on Jan 25, 2023
  2. stuartmorgan-g commented on May 8, 2026

    @stuartmorgan-g
    Contributor

    Moving discussion here and expanding on what I learned in last year's PR:

    As far as I can tell we are blocked on adding any Swift code to google_maps_flutter_ios, as doing so triggers the same category of problem that led to this complicated SwiftPM support design doc, as captured in this appendix.

    I just re-tested this from scratch with the current version of google_maps_flutter_ios to make sure this wasn't operator error or a quirk of that version of Xcode. Testing now with Xcode 26.2, if I take the example app for google_maps_flutter_ios and:

    • add a single trivial Swift file
    • add .swift to the podspec pattern for sources
    • change the example Podfile and Xcode project to set iOS 15, rather than 14, as the deployment version

    then building fails with:

    Swift Compiler Error (Xcode): Compiling for iOS 14.0, but module 'GoogleMapsUtils' has a minimum deployment target of iOS 15.0
    

    If I change google_maps_flutter_ios.podspec to s.platform = :ios, '15.0', then do a flutter clean/flutter build, that problem goes away, so clearly the 14.0 in that error is coming from the plugin podspec.

    So it appears that just as SwiftPM proved incompatible with the dynamic GoogleMaps version resolution used by google_maps_flutter_ios, any use of Swift is incompatible with that as well.

  3. 24 remaining items

  4. github-actions commented on Sep 26, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work listp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions