gpt4 book ai didi

ios - Google Map Framework 在 Ios 中使用 cocoapods 添加

转载 作者:行者123 更新时间:2023-12-01 16:36:47 24 4
gpt4 key购买 nike

我正在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com