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
?