My iOS app allows users to edit and save videos. The edited videos are saved with a call to
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL:
within a PHPhotoLibrary
's performChanges
block.These calls frequently fail with the error code
41002
(Domain: com.apple.photos.error
). Its localizedDescription
is:Unable to obtain assetsd XPC proxy for getPhotoKitServiceWithReply:. assetsd could have crashed
What does the error mean? I tried to search for the error code, the domain and the keywords from the description, but couldn't find anything. Is there an official reference for the errors in this domain? What error message should I show to the user?