Save Live Photos fails

Hello, Would appreciate any help with an issue I am having writing Live Photos. Following the code samples shown in https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/capturing_still_and_live_photos/capturing_and_saving_live_photos, I cannot add a Live Photo to the camera roll. I get an error code -1.

I am able to successfully write the individual image, and movie, so I know its not an issue with the files or a permission issue. I am writing a .jpeg and .mov file.

Do Live Photos require to be written with specific file types?

Any other requirements for writing a Live Photo?

Please if anyone can help I would greatly appreciate it. Thank you

Save Live Photos fails
 
 
Q