问题一:
Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey:.
解决方法:将
[GMSServices provideAPIKey:”Your key”];
这行代码放在UIWindow实例化之前。
问题二:
此error只要將你Frameworks裡的
GoogleMaps.framework 右鍵→show in finder -> Resources → GoogleMaps.bundle拉到
Frameworks的資料夾 我是沒有將copy items into destination groups folder 打勾,
因為GoogleMaps.framework已經copy items在project裡頭了
或者直接copy一下GoogleMaps.bundle到一个地方再导入。