Contact Import on iOS9 causes app crash with linked contacts when compiled with iOS8 SDK
| Originator: | rcrebs | ||
| Number: | rdar://22991970 | Date Originated: | 06-Oct-2015 09:43 AM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS9 |
| Classification: | Reproducible: | always |
Summary: When compiled with iOS8 SDK. Importing a contact on iOS9 that is linked to other contacts cause a crash. Specifically, when calling ABPersonCopyArrayOfAllLinkedPeople on iOS9 (when using a build compiled using iOS8 SDK) a crash is thrown. Steps to Reproduce: 1) Link minimum TWO contacts on local device contacts (on iphone, click Phone then Contacts open one of the contacts, then click EDIT, scroll down and click the linkable link under Linked Contacts) - Create contact1 & 2 first, last name - save. This should be done on phone contacts as described above in paranthesis. - Edit contact1, scroll down to linked contacts, select 'link contacts' link and search for Contact2 created, click LINK, Done 2) In app, import the contact using the ABPersonPickerNavigationController 3) search for linked contacts created step 1 and you will see app crash Expected Results: When building with iOS8 SDK app should not crash on iOS9. Specifically, shouldn't crash using ABPersonCopyArrayOfAllLinkedPeople on iOS9 using a build with iOS8SDK. It is understood that ABPersonCopyArrayOfAllLinkedPeople is deprecated in iOS9, but this is happening when compelling with iOS8 SDK. Actual Results: Crash happens when using ABPersonCopyArrayOfAllLinkedPeople on iOS9 using a build with iOS8 SDK. Version: iOS9+ Notes: I noticed in ABPerson.h it has a comment saying to use predicateForContactsLinkedToContact: for the new iOS9 SDK. However, predicateForContactsLinkedToContact is not exposed as a public method in iOS9 SDK. In iOS9 SDK should this method be expose? Configuration: This can be replicated on any iOS9+ device iPhone5s, iPhone6 / 6+ Attachments:
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!