CMPedometer SIGABRT crash iOS 10?

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?

+5
source share
3 answers

Apple Engineering provided me with the following feedback after submitting the bug report:

This application crashed because it tried to access sensitive data without a description of use. The Info.plist application must contain the NSMotionUsageDescription key with a string value that tells the user how the application uses this data.

+11
source

iOS 10 has updated its privacy policy and introduced new privacy rules. You must update your Info.plist application using the following authorization request fields.

Description text will be displayed when authorization is requested.

 <!-- πŸ–Ό Photo Library --> <key>NSPhotoLibraryUsageDescription</key> <string><Your description goes here></string> <!-- πŸ“· Camera --> <key>NSCameraUsageDescription</key> <string><Your description goes here></string> <!-- 🎀 Microphone --> <key>NSMicrophoneUsageDescription</key> <string><Your description goes here></string> <!-- πŸ“ Location --> <key>NSLocationUsageDescription</key> <string><Your description goes here></string> <!-- πŸ“ Location When In Use --> <key>NSLocationWhenInUseUsageDescription</key> <string><Your description goes here></string> <!-- πŸ“ Location Always --> <key>NSLocationAlwaysUsageDescription</key> <string><Your description goes here></string> <!-- πŸ“† Calendars --> <key>NSCalendarsUsageDescription</key> <string><Your description goes here></string> <!-- ⏰ Reminders --> <key>NSRemindersUsageDescription</key> <string><Your description goes here></string> <!-- 🏊 Motion --> <key>NSMotionUsageDescription</key> <string><Your description goes here></string> <!-- πŸ’Š Health Update --> <key>NSHealthUpdateUsageDescription</key> <string><Your description goes here></string> <!-- πŸ’Š Health Share --> <key>NSHealthShareUsageDescription</key> <string><Your description goes here></string> <!-- α›’πŸ”΅ Bluetooth Peripheral --> <key>NSBluetoothPeripheralUsageDescription</key> <string><Your description goes here></string> <!-- 🎡 Media Library --> <key>NSAppleMusicUsageDescription</key> <string><Your description goes here></string> 
+14
source

I came here to say that I received the same error, but in my case there is no NSContactsUsageDescription . I would like them to have a better error message.

+2
source

All Articles