Skip to content

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

@gerymeli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions