The particular reason behind your issue is line 7. If you wish to go from the path to the file URL, you have to use This error generally happens once the method or an software tries to entry a shortcut that may be not out there or is moved to https://exposednews.co.uk/errordomainnscocoaerrordomainerrormessagecould-not-find-the-specified-shortcut-errorcode4-2/