Can't build with Xcode 14: "Doesn't match platform DriverKit"

I have an app that includes a DriverKit extension that up until now I've been building without issue using Xcode 13.

It was time to regenerate my Developer ID Application certificate so I needed to rebuild the app. However, I'm now running macOS Ventura and Xcode 14.3.1, and cannot get it to build in this later version of Xcode for reasons that are totally inscrutable to me. I've tried using both the newly generated provisioning profiles I've manually created in the "Certificates, Identifiers & Profiles" developer page, and the (still valid) provisioning profiles I already had installed.

The trouble is that, when I select a provisioning profile I made for the DriverKit extension, Xcode won't accept it for the following reason:

Platform: macOS
Doesn't match platform DriverKit

This makes no sense to me! There is no way to create a distribution provisioning profile for the "DriverKit" platform. All I can select is either "Mac" or "Mac Catalyst". So there's seemingly no way out of this. What am I missing?

Can't build with Xcode 14: "Doesn't match platform DriverKit"
 
 
Q