iOS10之后要在info.plist中加入读取或写入数据权限:
读取:
key:Privacy - Health Share Usage Description
type:string
写入:
key:Privacy - Health Update Usage Description
type:string
读取:
key:Privacy - Health Share Usage Description
type:string
写入:
key:Privacy - Health Update Usage Description
type:string