uni-app编译成微信小程序点真机预览报错 desc of scope.userLocation is empty

用HbuilderX去运行微信小程序,真机调试时报错desc of scope.userLocation is empty

可以通过如下方法解决:
1.去掉勾选位置接口,再去运行即可
uni-app编译成微信小程序点真机预览报错 desc of scope.userLocation is empty
2. 保持勾选的话,添加位置接口描述即可
uni-app编译成微信小程序点真机预览报错 desc of scope.userLocation is empty