重复出错:"复制捆绑资源"中缺少Google Maps捆绑包

hga*_*ale 3 xcode google-maps ios

每隔几天我就会遇到这个构建错误:

WARNING: Unable to find and load 'GoogleMaps.bundle' for Google Maps SDK for iOS. This may be a sign that you've forgotten to include a resources bundle in your 'Copy Bundle Resources' build phase.

Terminating app due to uncaught exception 'GMSServicesException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources''

通常,为了解决这个错误,我Google Maps SDK按照我在这里找到的最常见的指令重新安装Cocoa Pod.但是现在错误继续重现,我需要找到一个永久修复(如果有的话).

如何正确添加GoogleMaps.bundleCopy Bundle Resources通过Cocoa Pod添加Google地图的时候?我正在使用Xcode版本9.1.

sch*_*oun 8

我在这里遇到了同样的问题.这是我如何解决它.

在XCode中,在项目导航器中,转到"窗格">"窗格">"GoogleMaps">"地图">"框架"

右键单击GoogleMaps.framework>在Finder中显示

展开Goog​​leMaps.framework>资源

将GoogleMaps.bundle拖到您的XCode项目导航器(在Frameworks下)以获得更好的可读性.

单击"完成"以确认要求您根据需要复制项目的提示.

因为,我在控制台中有一些CoreData警告,我试图看它是否重要.但从我到目前为止所读到的内容来看,似乎并非如此.