gfortran error on M1: ld: unsupported tapi file type '!tapi-tbd' in YAML file

I'm using the latest gfortran release for M1 from https://github.com/fxcoudert/gfortran-for-macOS/releases. Monterey 12.5 Xcode 13.4.1 installed with CommandLine.

Error message: ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd' for architecture arm64 collect2: error: ld returned 1 exit status

There are many queries about this common issue, but I could not find any solution yet, even from gfortran developers... Very frustrating!

gfortran error on M1: ld: unsupported tapi file type '!tapi-tbd' in YAML file
 
 
Q