問題一:
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到一個地方再導入。