UIActivityViewController fails when doing 'Save Live Photo'

Originator:splonson
Number:rdar://48003801 Date Originated:2/12/2019
Status:submitted Resolved:
Product:iOS Product Version:12
Classification:bug/failure Reproducible:always
 
Presenting UIActivityViewController with activity item of the type PHLivePhoto and then selecting the 'Save Live Photo' choice to save the Live Photo to the photo library always fails with this line logged twice to the console (once for each resource in the Live Photo?):

2019-02-12 09:30:47.152096-0800 Activator[31153:14857751] Error: resource not available
2019-02-12 09:30:47.154249-0800 Activator[31153:14857870] Error: resource not available

The Live Photo is created via the PHLivePhoto class method requestLivePhotoWithResourceFileURLs:placeholderImage:targetSize:contentMode:resultHandler:.

The resource file URLs reference a photo and a movie file that are located in the file hierarchy for my app, placeHolderImage is nil, targetSize is CGSizeZero, and contentMode is PHImageContentModeAspectFit.

The coded handles the multiple calls to the resultHandler by checking for the value at PHLivePhotoInfoIsDegradedKey and only presents the UIActivityViewController when the degraded is false or not present. The only activity item passed to the init method is the instance of the PHLivePhoto created above.

I have attached a code snippet file that shows all of the above in detail.

This occurs when running on a variety of devices (iPhone XS, etc) running iOS 12.1.2.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!