[iOS] Simplify the code in resolveLocalFileSystemURI

This reverts commit b5df5df80c6813778dbe8a8d31a8fbf8d578ec65.