During the Build LibTorch-Lite for arm64 Devices pytorch

When I am executing this command → BUILD_PYTORCH_MOBILE=1 IOS_ARCH=arm64 ./scripts/build_ios.sh
I am getting this error

File “/Users/apple/Documents/GitHub/pytorch/tools/codegen/gen.py”, line 81

def parse_native_yaml(path: str) → ParsedYaml:
SyntaxError: invalid syntax

CMake Error at cmake/Codegen.cmake:232 (message):
Failed to get generated_cpp list
Call Stack (most recent call first):
caffe2/CMakeLists.txt:2 (include)

– Configuring incomplete, errors occurred!

Hi @patel_shahrukh, did you update submodules before running the build command? Like

git submodule sync && git submodule update --init --recursive --jobs 0

Tested at v1.10.0( 36449ea931) and it works for me.