Unable to find problem. Error Domain=com.apple.accounts Code=7 "(null)"

Even with sample code from Apple, the same warning forever.

"Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""

Failed to log access with error: access=<PATCCAccess 0x28316b070> accessor:<<PAApplication 0x283166df0 identifierType:auditToken identifier:{pid:1456, version:3962}>> identifier:2EE1A54C-344A-40AB-9328-3F8E8B5E8A85 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 235 named com.apple.privacyaccountingd" UserInfo={NSDebugDescription=connection to service with pid 235 named com.apple.privacyaccountingd}

Entitlements are reviewed.

What code are you running to hit this kind of error? What APIs are you calling that come back with this kind of error?

I´m accessing to photos library. All the methods accomplished. Privacy - Photo Library Usage Description. <string>This app requires access to the photo library</string> permission implemented as other permissions, Then: [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) { if (status == PHAuthorizationStatusAuthorized) { PHFetchOptions *fetchOptions = [PHFetchOptions new]; fetchOptions.includeAssetSourceTypes=PHAssetSourceTypeCloudShared| PHAssetSourceTypeUserLibrary; fetchOptions.predicate = [NSPredicate predicateWithFormat:@"mediaType = %d", PHAssetMediaTypeVideo]; _fetchedVideos=[PHAsset fetchAssetsWithMediaType:PHAssetMediaTypeVideo options:fetchOptions]; NSLog(@"from icloud %lu",_fetchedVideos.count); if (error) {NSLog(@"error %@", error.localizedDescription);} else {NSLog(@"success");} } }];

or by another way : [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) { if (status == PHAuthorizationStatusAuthorized) { PHFetchOptions fetchOptions = [PHFetchOptions new]; fetchOptions.includeAssetSourceTypes=PHAssetSourceTypeCloudShared| PHAssetSourceTypeUserLibrary; fetchOptions.predicate = [NSPredicate predicateWithFormat:@"mediaType = %d", PHAssetMediaTypeVideo]; NSError error;__block BOOL success = NO; [photoLibrary performChangesAndWait:^{ success = YES; NSLog(@"inside"); _fetchedVideos=[PHAsset fetchAssetsWithMediaType:PHAssetMediaTypeVideo options:fetchOptions]; NSLog(@"from icloud %lu",_fetchedVideos.count); } error:&error]; if (error) {NSLog(@"fail %@", error.localizedDescription); } else {NSLog(@"success ");} } }];

The resto goes well. Every time getting the same warning

Unable to find problem. Error Domain=com.apple.accounts Code=7 "(null)"
 
 
Q