iOS 11 中未调用用户当前位置委托方法

User current location delegate method not called in iOS 11

我刚刚在 iOS 11 和 运行 中安装了我的应用程序并获取了当前用户位置。但我不会,它在 iOS 10.

中工作正常

我添加了新密钥 NSLocationAlwaysAndWhenInUseUsageDescription 和其中一个旧密钥 NSLocationWhenInUseUsageDescription,位置服务再次正常工作。