How to designate principal class

I am building an app that uses DeviceActivity framework. Looking at the documentation, I need to subclass (https://developer.apple.com/documentation/deviceactivity/deviceactivitymonitor), I need to "subclass DeviceActivityMonitor and designate the subclass as the principal class of my app extension.

I am wondering how to designate my subclass as the principal class. (I am new to iOS development :) .

According to the documentation, you need to add a device activity monitor extension to your app, and then you can designate the subclass as the principal class by editing the Info.plist of the extension. Unfortunately, there is no template for device activity monitor extension in the latest Xcode (15 beta 5) nor any documentations in the dev site of Apple's and you need to explore the world wide web to accomplish it.

Did you resolved this problem? If yes, I want to know how you did it.

How to designate principal class
 
 
Q