Skip to content

CapacitorGoogleMaps/Map.swift:134: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value #135

Open

Description

@gerymeli

Bug Report

Plugin(s)

CapacitorGoogleMaps v7.1.1

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.4.3
  @capacitor/core: 7.4.3
  @capacitor/android: 7.4.3
  @capacitor/ios: 7.4.3

Installed Dependencies:

  @capacitor/cli: 7.1.0
  @capacitor/core: 7.1.0
  @capacitor/android: 7.1.0
  @capacitor/ios: 7.1.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

iOS

Current Behavior

After ionic build and npx cap sync commands, i run the app via Xcode 26 on simulator iPad Air 13-inch (M3) iOS 18.5 and got this error in Xcode debug console:
CapacitorGoogleMaps/Map.swift:134: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

and the following into the render() method of the Map.swift class :
let minZoom = self.config.minZoom.map { Float($0) } ?? self.mapViewController.GMapView.minZoom
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Expected Behavior

the map should render normally as usual like on other devices and simulators.

Code Reproduction

Other Technical Details

I don't have this issue on iphone 16 pro max, iphone 17 pro max simulators and iphone 11 pro max device

Additional Context

i have upgraded my Xcode recently to Xcode 26 but i had the same issue before

Activity

  1. OS-pedrogustavobilro commented on Oct 3, 2025

    @OS-pedrogustavobilro
    Contributor

    Hey @gerymeli thanks for opening the issue. Could you try with the latest version, 7.2.0. I believe that error is fixed in 7.2.0.

    Thank you!

  2. sq-tupai commented on Oct 28, 2025

    @sq-tupai

    In my app still crashes if set forceCreate: true, remove it solves the crash.

  3. bilalsaeed commented on Nov 10, 2025

    @bilalsaeed

    Hey @OS-pedrogustavobilro I am still getting this error on 7.2.0, it doesn't work on simulator, physical iOS devices (iPhone 17pm, iphone 12,) and iOS devices on browserstack.

  4. added
    needs reproduction
    on Jan 2, 2026
  5. OS-pedrogustavobilro commented on Jan 2, 2026

    @OS-pedrogustavobilro
    Contributor

    @gerymeli @sq-tupai @bilalsaeed I'm not able to reproduce the crash, are you able to create/share a reproduction sample app (Github repo link) to reproduce the crash please?

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

    needs reproduction

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions