[英]Apple watch HealthKit - unrecognized selector HKHealthStore startWorkoutSession:completion:
I try to get heart rate with watch OS2.0 I get this error when i try to start the workout session 我尝试通过手表OS2.0来获取心率,但是在尝试开始锻炼时会出现此错误
Carleep WatchKit Extension[594:91719] -[HKHealthStore startWorkoutSession:completion:]: unrecognized selector sent to instance 0x155b40e0
I succeed to request authorization for heartRate. 我成功请求heartRate的授权。 I don't know if i need force import of HKHealthstore+HKWorkout category, and i don't know how to do this.
我不知道是否需要强制导入HKHealthstore + HKWorkout类别,我也不知道该怎么做。
If you have an idea about my problem and how to solve this it would be great. 如果您对我的问题以及如何解决这个问题有个好主意,那就太好了。
Regards, 问候,
Ok i found the solution, i just update Xcode 7 to the latest beta version (6). 好的,我找到了解决方案,我只是将Xcode 7更新为最新的Beta版本(6)。 They removed the completion block in startworkoutsession in the last beta of watch os2.
他们在手表os2的最后一个beta版的startworkoutsession中删除了完成块。 My sdk for watch os 2 in Xcode 7 beta 3 was outdated.
我在Xcode 7 beta 3中的手表os 2的SDK已过时。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.