简体   繁体   中英

What does Core Motion error 107 mean?

When I use CMPedometer pedometer appearance Error Code=107 Domain=CMErrorDomain (null) "error . what does it mean?

在此输入图像描述

You likely moved on by now but for others, this is very likely a date issue.

My case was using QueryPedometerData() and misunderstanding FromTimeIntervalSinceNow(). I thought it meant subtracting a number of seconds from Now but where its actually the opposite.

I also came across with this problem. In my case, the error was caused by the fact that the start date and the end date I provided to the CMPedometer were the same (for example, start date - 12:59:59 and the end date - 12:59:59). As I set the end date manually, inclusion of nanoseconds in the end date solved the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM