【问题标题】:Google Maps works in simulator but not in device谷歌地图可以在模拟器上运行,但不能在设备上运行
【发布时间】:2016-02-02 06:54:38
【问题描述】:

Google Maps 在 iPhone 模拟器中运行,当我在设备上运行我的项目时,它无法运行。

这里是错误描述:

CoreData:无法在路径加载优化模型 '/var/mobile/Containers/Bundle/Application/01B85FB4-C777-467D-9E61-92B4B3240B91/demo/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'

【问题讨论】:

    标签: ios google-maps


    【解决方案1】:

    将 -ObjC 添加到“Other Linker Flags

    (Build Settings -> Linking -> Other Linker Flags).
    

    这为我解决了。

    添加此标志后,我收到了一些关于缺少符号的错误(例如 _CBAdvertisementDataManufacturerDataKey)。

    我在Build Phases -> Link Binary With Libraries. 中添加了AccelerateCoreBluetooth 框架

    【讨论】:

    • 你有没有得到你的解决方案
    【解决方案2】:

    尝试此链接,请参阅https://code.google.com/p/gmaps-api-issues/issues/detail?id=8524 了解有关调试的信息

    这已在 1.10.4 中修复。

    【讨论】:

    • 试试这个 1.10.4 已经修复了这个问题。
    • 请在这里告诉我解决方案,可能链接不再可用
    • 你使用的是哪个版本
    • 重写了整个架构,当我运行代码时,我从核心数据中消除了这些警告。
    • 此问题已在 Google 地图的新更新中修复 developers.google.com/maps/documentation/ios-sdk/releases?hl=en 检查此链接并更新您的本地存储库
    猜你喜欢
    • 2014-08-20
    • 2021-07-24
    • 2018-10-16
    • 1970-01-01
    • 2013-07-12
    • 1970-01-01
    • 1970-01-01
    • 2014-12-24
    • 2019-12-13
    相关资源
    最近更新 更多