Corrected parameters in call to removeObjectForKey
The keys in mapCtrls are mapIds, not mapCtrl objects.
MODIFY
src/ios/GoogleMaps/MyPluginLayer.m
src/ios/GoogleMaps/MyPluginLayer.m
@@ -142,7 +142,7 @@ BOOL hasCordovaStatusBar = NO; // YES if the app has cordova-plugin-statusbar
dispatch_async(dispatch_get_main_queue(), ^{
// Remove the mapCtrl instance with mapId.
- [self.pluginScrollView.debugView.mapCtrls removeObjectForKey:mapCtrl];
+ [self.pluginScrollView.debugView.mapCtrls removeObjectForKey:mapCtrl.mapId];
// Remove the mapView from the scroll view.
[mapCtrl.view removeFromSuperview];

Corrected parameters in call to removeObjectForKey
The keys in mapCtrls are mapIds, not mapCtrl objects.