iOS 高德地图骑行导航正常,但驾车导航crash的解决方法

报错内容

*** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework/CoreLocation-2245.4.104/Framework/CoreLocation/CLLocationManager.m:652

报错位置

iOS 高德地图骑行导航正常,但驾车导航crash的解决方法_第1张图片
image.png

解决办法:Info.plist中的Required background modes里面增加一个App registers for location updates

image.png

以上解决了崩溃问题,但是骑行导航声音正常,驾车导航没有声音提示(首先确保声音代码是正确的)

解决办法:Info.plist中的Required background modes里面增加一个App plays audio or streams audio/video using AirPlay
image.png

你可能感兴趣的:(iOS 高德地图骑行导航正常,但驾车导航crash的解决方法)