iOS 11.2 CNContactStore.enumerateContacts sometimes doesn't enumerate all contacts

Originator:Michael.John.Kirk
Number:rdar://36082946 Date Originated:Dec 15, 2017
Status:open Resolved:
Product:Contacts Product Version:iOS11.2
Classification:Serious Bug Reproducible:sometimes
 
Area:
Contacts

Summary:

per
https://developer.apple.com/documentation/contacts/cncontactstore/1402849-enumeratecontacts

ContactStore.enumerateContacts(with:usingBlock:) should (and has up until 11.2) enumerated *all* system contacts, unless there is an error.

Some of our users report, and their logs corroborate that sometimes ContactStore.enumerateContacts only enumerates a subset of their contacts, yet no error is thrown.

Steps to Reproduce:

Call `ContactStore.enumerateContacts` at various points in the app lifecycle.

Expected Results:

enumerateContacts should either enumerate all contacts, or when it cannot, it should throw an error as documented.

Actual Results:

Sometimes enumerateContacts only enumerates a subset of contacts before returning.

Version/Build:

This is a new issue, only reported by iOS11.2 users. I have not been able to reproduce it locally, and our users only see it intermittently.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!