Forum Archive

330018: contacts example is broken...

mithrendal

the example from the official documentation http://omz-software.com/pythonista/docs/ios/contacts.html
does not work anymore in this build. It just stops on line 6 without an error.

The problem is the access to the "note" property.

import contacts
print('Address Book Notes')
print('=' * 40)
people = contacts.get_all_people()
for p in people:
  note = p.note
  if note:
    print(p.full_name)
    print('-' * 40)
    print(note)
    print('=' * 40)

the following version without access to the contact notes work as in the older builds... so it has nothing todo with permissions to the contacts in general...

import contacts
print('Address Book Notes')
print('=' * 40)
people = contacts.get_all_people()
for p in people:
  print(p.full_name)
  print('-' * 40)
  print('=' * 40)
tomkirn

Is this a new problem of 330018? As far as I know it is a IOS13 „problem“ caused by a new entitlement needed for accessing.

Regards
Tom

mithrendal

the official example still works with the 330015 and with the appstore version on iOS13.2. Therefore definitly a new problem introduced with 330018.

cvp

@mithrendal In one of my issues of 330018, Ole answered that this version is built with iOS 13 SDK. Thus, ...

cvp

See https://9to5mac.com/2019/06/05/ios-13-contacts-notes/

mithrendal

I understand that seems plausible. Then we have got this bug because @omz built the 330018 with a new version of XCode ... Do you think he should apply for an exception to the rule as pointed out in your linked article then ? Maybe Apple won't give him and us this exception...

cvp

@mithrendal Not so easy https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_contacts_notes

cvp

@mithrendal said:

we have got this bug because @omz built the 330018 with a new version of XCode

I think we will meet several bugs from that... 😥

osamu

Playing around with iOS contacts, I finally got stuck with this ‘notes’ problem and came here. Is it a bug? Ain’t it Apple’s new policy?