On my Xcode 12 beta simulators I am seeing several bugs when in limited photo access:
accessibleAssets contains all 100 of the simulator's photos.
2. When I display the limited library picker and make changes, the PHFetchResultChangeDetails object that is sent to the photoLibraryDidChange method does not contain any PHAsset objects in the result of the removedObjects, insertedObjects, or changedObjects so I'm not sure how I'm supposed to handle these changes if I need to take action on newly accessible/inaccessible photos.
Both of these are reproducible on Xcode 12 betas 1 through 6.
Is there any information on when these issues would be fixed? They are very difficult to deal with and are blocking me from releasing iOS 14 compatible updates to my application.
Despite giving access to a subset of my photos (let's say 10 out of 100), when I call
Code Block PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; fetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate" ascending:NO]]; PHFetchResult<PHAsset *> *accessibleAssets = [PHAsset fetchAssetsWithOptions:fetchOptions];
accessibleAssets contains all 100 of the simulator's photos.
2. When I display the limited library picker and make changes, the PHFetchResultChangeDetails object that is sent to the photoLibraryDidChange method does not contain any PHAsset objects in the result of the removedObjects, insertedObjects, or changedObjects so I'm not sure how I'm supposed to handle these changes if I need to take action on newly accessible/inaccessible photos.
Both of these are reproducible on Xcode 12 betas 1 through 6.
Is there any information on when these issues would be fixed? They are very difficult to deal with and are blocking me from releasing iOS 14 compatible updates to my application.