[iOS] Simplify the code in resolveLocalFileSystemURI

All auto file tests in spec can pass.