谷歌地图框架添加在ios中使用cocoapods



我正在使用cocoapods来添加所有框架的依赖项。我遇到了谷歌地图SDK的问题。我已经制作了 pod 文件并放置以下命令用于下载库。

    pod 'Google-Maps-iOS-SDK', '~> 1.9'

此外,它还会自动将行添加到 pod 资源 shell 脚本中用于路径

    install_resource "Google-Maps-iOS-SDK/GoogleMaps.framework/Versions/A/Resources/GoogleMaps.bundle"

它正在工作。但是它无法将googleMaps.bundle从googleMaps.framework复制到我的项目中,并给我错误运行时,请参见下文。

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

可能会在 pods 的规格中添加resource_bundles可能会有所帮助。

请参考:http://guides.cocoapods.org/syntax/podspec.html#resource_bundles

最新更新