iOS 健康授权闪退

2019/07/17 iOS

info.plist 中加入 NSHealthUpdateUsageDescription 和 NSHealthShareUsageDescription

iOS12 闪退解决方法:
将描述信息改为英文,随便写英语也不好使, 要包含 visit read “health”才好使

<key>NSHealthShareUsageDescription</key>
<string>visit &quot;health&quot; and read the data</string>
<key>NSHealthUpdateUsageDescription</key>
<string>visit &quot;health&quot; and write the data</string>

Search

    Table of Contents