CNContactViewController.highlightProperty(withKey:identifier:) not highlighting

120 Views Asked by At

CNContactViewController.highlightProperty(withKey:identifier:) isn't highlighting the property like it's supposed to.

I'm getting error message in debug window:

[PPT] Error creating the CFMessagePort needed to communicate with PPT.

Why am I getting this error and how do I fix this?

I am using Xcode 14.3 and an iPhone 8 device with iOS 16.4.1 (a).

enter image description here

Code:

print("self.contact.emailAddresses.first!.identifier):\n\t\(String(describing: self.contact.emailAddresses.first!.identifier))")
self.contactViewController.highlightProperty(withKey: CNContactEmailAddressesKey, identifier: self.contact.emailAddresses.first!.identifier)

More in debug window:

self.contact.emailAddresses.first!.identifier):
    ED15C6E7-0E63-4E0F-A868-6E450D6E7FDF
2023-05-29 11:46:45.742750-0500 TrialCNContactViewContollerInits[4726:216791] [Graphics] UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
2023-05-29 11:46:46.305697-0500 TrialCNContactViewContollerInits[4726:216791] [PPT] Error creating the CFMessagePort needed to communicate with PPT.
0

There are 0 best solutions below