Search code examples
iosswiftswiftuicncontact

Error creating the CFMessagePort needed to communicate with PPT


I try to present a CNContactPickerViewController inside a SwiftUI application using the UIViewControllerRepresentable protocol. As I already read, there seems to be a known issue for this not working, but I got it working quite ok using the workaround described here.

However, whenever the CNContactPickerViewController gets presented or dismissed resp., I get the following error in my output log:

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

I tried to find explanations on this, but there seems to be no answer anywhere on the internet. Does someone know where this error comes from and what PPT is? Could this error have something to do with the CNContactPickerViewController not working properly with SwiftUI?

I noticed the error for the first time in the iOS 14 beta together with the Xcode 12 beta, and it is still present in iOS 14.2 with Xcode 12.2. I don't know if the error appears on iOS 13 as well.
I already issued a feedback report about this.


Solution

  • This error even occurs on a virgin/clean generated project with only Hello World by Xcode 16.2 on several simulators with iOS 18.2. So I suggest to ignore it completely as it has no impact on the performance of the apps.

    It points to a connection Performance Power Tools failure, but the CPU, Memory, Disk & Network performance is working correctly in the debugging session