Fork of the official plugin
This allows you to run your Flutter app that depends on google_maps_flutter using arm64 architecture on ios simulator.
It uses the latest version of Google Maps SDK downloaded from map configuration documentation (link in the section about updating below).
Current Google Maps SDK version: 8.2.0
google_maps_flutter version 2.5.0
- Inside
ios/Runner/AppDelegate.swiftenable Metal renderer for GoogleMaps if one is available:
GeneratedPluginRegistrant.register(with: self)
GMSServices.provideAPIKey(mapsApiKey)
let device = MTLCreateSystemDefaultDevice();
if (device != nil) {
GMSServices.setMetalRendererEnabled(true);
}- Override
google_maps_flutter_ios
dependency_overrides:
google_maps_flutter_ios:
git:
url: https://github.com/XperiTech/google_maps_flutter_ios
ref: <insert hash of last commit>- Go to https://developers.google.com/maps/documentation/ios-sdk/config#install-the-xcframework and download the SDK source files.
- Find
GoogleMaps,GoogleMapsBaseandGoogleMapsCorexcframeworks and copy them over toFrameworksdirectory