我正在使用 cocoapods 添加所有框架的依赖项。我正面临 google map sdk 的问题。我已经制作了 pod 文件并将下面的命令用于下载 libray。
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
最佳答案
可能在您的 pod 规范中添加 resource_bundles 可能会有所帮助。
请引用:http://guides.cocoapods.org/syntax/podspec.html#resource_bundles
关于ios - Google Map Framework 在 Ios 中使用 cocoapods 添加,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27519238/