Swift iOS谷歌地图SDK崩溃
您好,我遇到了一个问题,我在我的应用程序上集成了GMS,当我反复尝试添加需要地址的条目时,它不断崩溃 谷歌问题: 您正在经历的错误行为是什么Swift iOS谷歌地图SDK崩溃,swift,google-maps-sdk-ios,Swift,Google Maps Sdk Ios,您好,我遇到了一个问题,我在我的应用程序上集成了GMS,当我反复尝试添加需要地址的条目时,它不断崩溃 谷歌问题: 您正在经历的错误行为是什么 应用程序在加载带有谷歌地图的视图时崩溃 应该怎么办 应该可以毫无问题地加载 调用堆栈: gmscore::renderer::MutableImageData::ProvideTextureImage()+84 重现问题的步骤: 重复添加新条目,直到谷歌地图崩溃 操作系统版本:iOS 11.4.1[15G77] iOS版谷歌地图SDK:2.7
- 应用程序在加载带有谷歌地图的视图时崩溃
- 应该可以毫无问题地加载
- gmscore::renderer::MutableImageData::ProvideTextureImage()+84
- 重复添加新条目,直到谷歌地图崩溃
- 操作系统版本:iOS 11.4.1[15G77]
- iOS版谷歌地图SDK:2.7.0/iOS 11.4
- 硬件型号:iphoneX
崩溃发生时手机的屏幕广播:您正在向谷歌地图添加条目。那是什么意思,顺便问一下?你找到解决办法了吗?
override func viewDidLoad() {
super.viewDidLoad()
let camera = GMSCameraPosition.camera(withLatitude: 14.52101057,longitude: 121.06712508,zoom: zoomLevel)
mapView = GMSMapView.map(withFrame: self.view.bounds, camera: camera)
mapView.settings.myLocationButton = true
mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
mapView.isMyLocationEnabled = true
mapView.settings.myLocationButton = true
mapView.delegate = self
do {
// Set the map style by passing a valid JSON string.
mapView.mapStyle = try GMSMapStyle(jsonString: kMapStyle)
} catch {
NSLog("One or more of the map styles failed to load. \(error)")
}
locationManager = CLLocationManager()
locationManager.desiredAccuracy = kCLLocationAccuracyBest
locationManager.requestAlwaysAuthorization()
locationManager.distanceFilter = 50
locationManager.startUpdatingLocation()
locationManager.delegate = self
self.view.addSubview(mapView)
self.view.addSubview(UserBar)
}