Having trouble building app after adding DeviceActivity framework

I'm attempting to build with the iOS 16 Screen Time APIs and getting the following error:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/DeviceActivity.framework/Modules/module.modulemap:2:10: error build: Header 'DeviceActivity-Swift.h' not found

I added the DeviceActivity.framework to the target.

Is there a setting I missed or could this be a problem with something missing in the Xcode 14 beta?

@jimm123034

Try to create the project as below,

  1. Create a new project as Single App
  2. Enable Family Control capabilities
  3. Now add required frameworks one by one and activate it.

I used Xcode 14.3beta

Having trouble building app after adding DeviceActivity framework
 
 
Q