Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:...] prior to use'
1 Answer
import google map as written below
import GoogleMaps
get Api key by create app using following link https://console.developers.google.com/
write below code in didFinishLaunchingWithOptions
method of AppDelegate
GMSServices.provideAPIKey("your App Id")
that's it
-
This works for people who only have the
AppDelegate.swift
file instead of theAppDelegate.m/.h
file. Also think you meant to say "Your App API Key", instead of "Your App Id".– JakeAug 26, 2021 at 13:40