ionic-team / ionic-team/capacitor-google-maps

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

Open
#135 4 comments 0 reactions 0 assignees View on GitHub
needs reproduction
Dominant language
TypeScript
Stars
32
Forks
47
PR merge metrics
No merged PRs in 30d

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.