[iOS] Simplify the code in resolveLocalFileSystemURI