ContactsUI error

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

Has anyone resolved this issue?
Code Block
func contactPicker(_ picker: CNContactPickerViewController, didSelect contact: CNContact) {
        let emailNumberCount = contact.emailAddresses.count
        guard emailNumberCount > 0 else {
            actionOwnerEmail.text = ""
            dismiss(animated: true, completion: nil)
            let alert = UIAlertController(title: "No email found", message: "Please add email to your addressbook", preferredStyle: .alert)
            alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
            self.present(alert, animated: true)
        return
        }
        let email = contact.emailAddresses[0].value as String
        actionOwnerEmail.text = email
    }
    func contactPickerDidCancel(_ picker: CNContactPickerViewController) {
        dismiss(animated: true, completion: nil)
    }


I am using the above codes but when calling CNContactPicker, I have the error message.
I need your help community; my app is complete but I am busy making sure that I have it clean
I have noticed that when installed on the iPhone, the code works without error message.
Can someone show me how to close this case? Sorry I am new to Xcode and I have just developed my first app with XCode therefore I am new to this forum
ContactsUI error
 
 
Q