我很难显示GMSMapView。我看到一个空白的地图,如下所示。
我已经看到很多答案,表明API密钥无效或未在Google控制台中启用Maps iOS SDK。但就我而言,关键适用于示例项目。我什至创建了一个基本项目,并且在显示地图时没有任何问题。
这是我在控制台中看到的:
2018-09-28 10:54:37.946703+0200 XXXXX[53857:723015] ((null)) was false:
GMSStyledVectorMapTileService failed to decode tile [4,2,5], +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638
2018-09-28 10:54:38.063481+0200 XXXXX[53857:723015] +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638
2018-09-28 10:54:38.063666+0200 XXXXX[53857:723015] ((null)) was false: GMSStyledVectorMapTileService failed to decode tile [3,1,3], +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638
请帮助,我在这里死了
答案 0 :(得分:1)
好吧,这有点像我的项目。我的工作区项目的多个目标之间共享了Google Maps Pod。似乎该密钥未在目标之间共享。现在,地图窗格仅用于主要目标,并且可以正常工作。
答案 1 :(得分:1)
This is either linkage problem or the Google Maps resources bundle is misplaced.
GoogleMapsUtils
with GoogleMaps frameworks AND linking the app again with GoogleMaps frameworks. GoogleMaps.bundle
out of the framework and into our own framework, which was also probably a mistake.Hope it helps.
答案 2 :(得分:0)
我通过手动集成Google地图来处理它。我仍然没有通过cocoapods找到解决方法。