I am relatively new to coding on Mac so I apologize in advance if the question is too simple. I encounter the following error when executing a code after updating the OS to Bug Sur:
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libm.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status
The code compiles but the does not give an output file. Everything was working perfectly before updating. Following instructions to a somewhat similar question here, I un-installed the CLT and tried to reinstall the 11.5 version but that couldn't be done and the error was the version of Mac is too new. I'd appreciate any help or suggestions on this.