On a brand new build, why would I get this error: "Error creating the CFMessagePort needed to communicate with PPT."

It happens on a brand new SwiftUI Xcode project with nothing in it but the default base code. When I build and run, I get "Error creating the CFMessagePort needed to communicate with PPT." After some Googling, I know it has something to do with Performance Tools. I don't know what's causing it.

I'm running 16.2 on a brand new M4 Mac mini.

I get the same message in log when creating a project in Xcode 16.2 on MacMini with MacOS 14.7.2.

Error creating the CFMessagePort needed to communicate with PPT.

Failed to send CA Event for app launch measurements for ca_event_type: 0 event_name: com.apple.app_launch_measurement.FirstFramePresentationMetric
Failed to send CA Event for app launch measurements for ca_event_type: 1 event_name: com.apple.app_launch_measurement.ExtendedLaunchMetrics

I tested on Xcode 15.3

  • creating a new project does not show the log but another one:
Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.
  • opening the project created with 16.2 crashed Xcode, even after changing project format to Xcode 15.3 from 16.0.

As the Xcode 16,2 project works without problem, that seems to be just log noise.

You could file a bug report however.

I'm receiving the same error. On a completely stock new project, build and run, "Error creating the CFMessagePort needed to communicate with PPT." See it in my older projects now too. Xcode 16.2 on a M1 Macbook pro.

On a brand new build, why would I get this error: "Error creating the CFMessagePort needed to communicate with PPT."
 
 
Q