info.plist 中的 NSLocationWhenInUseUsageDescription 字符串值在构建时消失。离子框架,Mac OS Yosemite

NSLocationWhenInUseUsageDescription in info.plist string value disappearing on build. Ionic framework, Mac OS Yosemite

我不太确定我是否 运行 遇到了这个问题,但是当我为 ios 平台构建时,我的 info.plist 中的键 NSLocationWhenInUseUsageDescription 的值消失了。因此我只剩下这个在我的 info.plist:

<key>NSLocationWhenInUseUsageDescription</key>
<string></string>

我正在使用 ngCordova $geoLocation 来确定纬度和经度。

还有其他人有这个问题吗?

谢谢。

我通过配置插件的 xml ios 部分来包含键及其各自的值,然后将它们包含在 .plist 文件中,从而让它们得以保留。