Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on iOS: 'Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:...] prior to use' #5

Closed
Gintasz opened this issue Mar 18, 2020 · 3 comments
Assignees
Labels
bug Something isn't working platform-ios iOS applications specifically

Comments

@Gintasz
Copy link

Gintasz commented Mar 18, 2020

I'm using 3.2.0 and when I run the app I get:

2020-03-18 21:56:51.171549+0200 Runner[3009:445768] *** Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:...] prior to use'
*** First throw call stack:
(0x21944d27c 0x2186279f8 0x2193574b0 0x1025f9b3c 0x1025f6a38 0x1025e68a8 0x1025e5f80 0x1025e5dc8 0x1029ed9d4 0x1029ed858 0x1052e1d1c 0x105368ed8 0x1052ff228 0x105359a40 0x10530fdec 0x105311be8 0x2193df650 0x2193df380 0x2193debb4 0x2193d9b04 0x2193d90b0 0x21b5d979c 0x245c0f978 0x10203b058 0x218e9e8e0)
libc++abi.dylib: terminating with uncaught exception of type NSException

Even though I do have the damn GoogleMap.init('IOS_KEY_HERE'); as 1st line in main()

@OlehMarch
Copy link
Member

Have you added iOS API key in the AppDelegate?

@OlehMarch OlehMarch added bug Something isn't working platform-ios iOS applications specifically labels Mar 19, 2020
@marchdev-tk marchdev-tk locked and limited conversation to collaborators Mar 19, 2020
@marchdev-tk marchdev-tk unlocked this conversation Mar 19, 2020
@Gintasz
Copy link
Author

Gintasz commented Mar 19, 2020

Didn't, because I missed the link instructing to do so in readme. After adding, it works fine.

@march-dev
Copy link
Contributor

Okay, I'll update readme, it's important step, it needs to be obvious how to setup all of it.

@march-dev march-dev removed their assignment Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform-ios iOS applications specifically
Projects
None yet
Development

No branches or pull requests

2 participants