Declared Age Range - AgeRangeService.Error the operation couldn't be completed

Is there a setting in Settings for None, Ask, or Always for Declared Age? I cannot find anything in iOS 26.2 Settings app, nothing comes up in a search for "age" in Settings.

I managed to setup a sandbox apple account (after creating a new email address) and I was able to go to Settings->Developer, login to the sandbox account, and try the various settings for age there, so that much is working.

When I call AgeRangeService.shared.requestAgeRange(ageGates: 18, in: presenter) I get "The operation couldn’t be completed. (DeclaredAgeRange.AgeRangeService.Error error 0.)"

Is there a way to test this with my regular personal apple unpaid developer account, my work apple developer account with MS SSO, or with the sandbox user?

Should I be using requestAgeRange or isEligibleForAgeFeatures?

We just have a regular app on the store, it doesn't have chat or anything like that, it's used by licensed truck drivers mostly CDL holders who are 99.99% 18+ in age, possibly some exceptions for 16+ farm drivers. And we would like to stay compliant. Other caveats are that only iOS 26.2 and up are supported, and a judge has blocked the Texas law.

Is Apple still supporting the Declared Age Framework or has there been a change?

After some trial and error, I added the Declared Age Framework Capability under my main target in my main project in my workspace which created another entitlements file specifically for this project.

At first, it did not work with our generic entitlements file which was also under that project, even though that file appears to be referenced from the main project file as well.

The difference seems to be that CODE_SIGN_ENTITLEMENTS is set to the new MainProjectName.entitlements file under Build Settings for the main target in our main project.

The setting for "Age Range for Apps" is under Settings->tap your apple account at the top->Personal Information->Age Range for Apps.

Declared Age Range - AgeRangeService.Error the operation couldn't be completed
 
 
Q