Authorizing Family Controls as individual fails in Simulator.

I'm attempting to authorize family controls as .individual in the latest Xcode 14 beta (14A5228q).

do {
   try await AuthorizationCenter.shared.requestAuthorization(for: .individual)
} catch {
    print(error.localizedDescription)
    dump(error)
}

Running this on the iPhone 13 Simulator (iOS 16), it throws the following error:

The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 3.)
- Error Domain=FamilyControls.FamilyControlsError Code=3 "(null)" #0
  - super: NSObject

I have a dedicated App ID and have enabled the "Family Controls" capability.

An Apple Systems Engineer suggested in this thread that "Requesting FamilyControls authorization on Simulator is supported by the ScreenTime API", although they don't say whether it actually works or not.

The rest of the thread seems to suggest people are also having issues when running on a physical device so I'm reluctant to install the iOS 16 Beta as I use my phone daily for work projects.

Is this FamilyControls authorization supposed to work in Simulator and are there any special considerations when authorizing as .individual?

I am unable to get it to work on a simulator. I am having to use a physical device.

I get the exact same error when trying to request individual authorisation in the simulator. It does work however when installed on a physical device. I'm hoping apple can fix this so we can test through the simulator.

I believe this is a bug. Error code 3 is invalidArgument. This really anony can not use simulator to test.

   /// The method's arguments are invalid.
  case invalidArgument    // 3

Using the code

              Task {

                    do {

                        try await center.requestAuthorization(for: .individual)

                    } catch {

                        print("Failed to enroll Aniyah with error: \(error)")

                    }

                }

and follow this video the configuration your Xcode project

Authorizing Family Controls as individual fails in Simulator.
 
 
Q