Skip to content

google_maps_flutter_ios_sdk9 and google_maps_flutter_ios_sdk10 have swift warning "Variable 'mapsApiKey' was never mutated; consider changing to 'let' constant" #194605

Closed
flutter/packages
#13300

Description

@jmagman
/Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/ios/Runner/AppDelegate.swift:15:9: error: variable 'mapsApiKey' was never mutated; consider changing to 'let' constant
    var mapsApiKey = ProcessInfo.processInfo.environment["MAPS_API_KEY"] ?? "YOUR KEY HERE"
    ~~~ ^
    let

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8667765278421871441/+/u/Run_package_tests/native_test/stdout

Activity

  1. added
    platform-iosiOS applications specifically
    p: mapsGoogle Maps plugin
    team-iosOwned by iOS platform team
    on Oct 16, 2026
  2. github-actions commented on Oct 31, 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: mapsGoogle Maps pluginplatform-iosiOS applications specificallyteam-iosOwned by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions