mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-05 13:03:33 +00:00
* fix(ios): prevent contacts.add crash from unfetched CNContactFormatter keys ContactsService.payload(from:) formats contacts with CNContactFormatter, but payloadKeys did not include the formatter's required-key descriptor. The formatter then reads name components (e.g. middleName) that were not fetched, so CNContact raises CNPropertyNotFetchedException — an Objective-C exception that is not caught by Swift error handling and terminates the app. Add CNContactFormatter.descriptorForRequiredKeys(for: .fullName) to payloadKeys so every key the formatter touches is fetched. * fix(ios): clarify contact formatter contract --------- Co-authored-by: abdullahtas0 <“dev.abdullahtas@gmail.com”> Co-authored-by: Peter Steinberger <steipete@gmail.com>