受限制的权限 -> 对应 CLAuthorizationStatus.kCLAuthorizationStatusRestricted
This app is not authorized to use location services.
The user cannot change this app’s status, possibly due to active restrictions such as parental controls being in place
链接:apple 官网:https://developer.apple.com/documentation/corelocation/clauthorizationstatus/kclauthorizationstatusrestricted?language=objc
一、拍照–camera
系统设置 -> 屏幕使用时间 -> 内容和隐私访问限制 -> 允许的 app -> 关闭相机
二、定位 – location
系统设置 -> 屏幕使用时间 -> 内容和隐私访问限制 -> 定位服务 -> 不允许更改
注意:以上步骤一定要在 app 申请定位权限之前就设置好,如果之前设置过了,那么权限就会与之前的设置保持一致
三、通讯录、麦克风、照片等
与二的操作步骤相同