PhotoLibrary Video: Unable to issue sandbox extension error code -1

2022. 10. 18. 18:07iOS/이슈

증상: SandBox/Document/.mp4 저장 후, PHAsset.performChange()로 파일 저장 실패

[PhotoKit] PHExternalAssetResource: 
Unable to issue sandbox extension for 
/file:/var/mobile/Containers/Data/Application/CA01D074-1E48-4096-B003-90B780BC2040/Documents/Videos/proting20221018173502.mp4
errorcode -1

원인: 

 

해결 방법: 흠..

// 에러 path
"file:///var/mobile/Containers/Data/Application/6C2115B9-9664-4842-AEFE-C603E897DE6E/Documents/Videos/proting20221018175903.mp4"
// 변경 path
file:///var/mobile/Containers/Data/Application/6C2115B9-9664-4842-AEFE-C603E897DE6E/Documents/Videos/proting20221018175903.mp4