contacts shell command gives CoreData errors
I use mutt for my email and autofill addresses using the built in contacts command. After a recent update (I think either 10.12.1 or 10.12.2), it's started spewing odd error messages when use it to perform a lookup.
contacts -Sf '%e' 'name'
This yields a normal response but also several of the following:
CoreData: warning: dynamic accessors failed to find @property implementation for 'uniqueId' for entity ABCDInfo while resolving selector 'uniqueId' on class 'ABCDInfo'. Did you remember to declare it @dynamic or @synthesized in the @implementation ? CoreData: warning: dynamic accessors failed to find @property implementation for 'uniqueId' for entity ABCDContact while resolving selector 'uniqueId' on class 'ABCDContact'. Did you remember to declare it @dynamic or @synthesized in the @implementation ?
Note that I have not redacted anything in the above messages - they literally refer to ABCDInfo and ABCDContact. I can dump the errors to /dev/null and get it to behave normally by doing:
contacts -Sf '%e' 'name' 2> /dev/null
but I wondered if anyone has any insight into what's breaking especially since it sounds like there may something corrupt or missing in my Address Book.
Thanks!
Posted Dec 23, 2016, 6:47 PM UTC
Sounds like a Contacts framework regression, and you are probably one of extremely few people hitting it.
Makes sense. I might deep dive on this one of these days in Swift when I'm feeling bored/masochistic.