PHPhotoLibrary video move issues on iOS 11

I am using PHPhotoLibrary to move videos from the app to camera roll using this code:


[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
                    PHAssetResourceCreationOptions *options = [[PHAssetResourceCreationOptions alloc] init];
                    options.shouldMoveFile = YES;
                    PHAssetCreationRequest *changeRequest = [PHAssetCreationRequest creationRequestForAsset];
                    [changeRequest addResourceWithType:PHAssetResourceTypeVideo fileURL:movieURL options:options];
                } completionHandler:^( BOOL success, NSError *error ) {
                                             ....
                 }


There is an issue with HEVC videos recorded with my app on iOS11. When the videos are exported from camera roll to Windows Explorer on computer, it fails many times and gives empty container. If I use ALAssetsLibrary to export videos to camera roll, then everything is fine. What's the difference really between the two APIs in the case, is it a bug in PHPhotoLibrary?