I have an application that I'm testing on iOS 10 Beta 3 at the moment, and for some odd reason, when I run this one method, it seems to break into the line startPedometerUpdatesFromDate below:
if (!_pedometer) { _pedometer = [[CMPedometer alloc] init]; } [_pedometer startPedometerUpdatesFromDate:[NSDate date] withHandler:^(CMPedometerData * _Nullable pedometerData, NSError * _Nullable error) {
I confirmed that _pedometer not nil , and this is even _pedometer since it worked in iOS 9 before my update.
The console says nothing that something is wrong with the code, and when it crashes, it simply leads to this (even with exceptions):
libsystem_kernel.dylib`__abort_with_payload: 0x183a58d94 <+0>: movz x16, #0x209 0x183a58d98 <+4>: svc #0x80 -> 0x183a58d9c <+8>: b.lo 0x183a58db4 ; <+32> 0x183a58da0 <+12>: stp x29, x30, [sp, #-16]! 0x183a58da4 <+16>: mov x29, sp 0x183a58da8 <+20>: bl 0x183a3d7dc ; cerror_nocancel 0x183a58dac <+24>: mov sp, x29 0x183a58db0 <+28>: ldp x29, x30, [sp], #16 0x183a58db4 <+32>: ret
I also included privacy - a description of the use of security and privacy - a description of the use of shared resources in my Info.plist. It is also being tested on the iPhone 6 Plus, so I'm not quite sure what the problem is. Is there something I can't see?
source share