gpt4 book ai didi

swift - 谷歌地图 SDK 错误

转载 作者:可可西里 更新时间:2023-11-01 01:56:59 25 4
gpt4 key购买 nike

我安装了带有 cocoapods 的 GoogleMaps,安装正常,但是当我运行该应用程序并尝试运行 Google 在他们的文档中提供的代码片段时,我收到错误:

W0815 21:50:35.497383       1 commandlineflags.cc:1503] Ignoring RegisterValidateFunction() for flag pointer 0x100bc8210: no flag found at that address

CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/7689CC83-309E-4D44-B5E0-697601B96C61/BoostRadius-iOS.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'

CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/7689CC83-309E-4D44-B5E0-697601B96C61/BoostRadius-iOS.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'

CoreData: annotation: Failed to load optimized model at path '/var/containers/Bundle/Application/7689CC83-309E-4D44-B5E0-697601B96C61/BoostRadius-iOS.app/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo'

代码直接来自 docs

override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .green

let camera = GMSCameraPosition.camera(withLatitude: -33.86, longitude: 151.20, zoom: 6.0)
let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
view = mapView

// Creates a marker in the center of the map.
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: -33.86, longitude: 151.20)
marker.title = "Sydney"
marker.snippet = "Australia"
marker.map = mapView
}

我正在使用 Xcode 10 beta 5、Swift 4.2

最佳答案

看起来这个错误已经在 Google 问题跟踪器中归档了:

https://issuetracker.google.com/issues/64504919

不幸的是,还没有解决。我建议在问题跟踪器中为这个错误加注星标,以表达您的兴趣并订阅来自 Google 的进一步通知。

希望 Google 能尽快修复它。

更新

Google 通过以下评论将上述错误标记为已修复:

We believe this issue should now be solved with the new version of the SDK v3.3. Let us know otherwise.

Regarding the iPadOs issue mentioned in comment#78 could you please open a new issue with the same description to track it?

关于swift - 谷歌地图 SDK 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51869405/

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