While trying to build XCode project with xcodebuild -enableAddressSanitizer
I encounter one of the following errors.
I use ccache so my CC/CXX/LD/LDPLUSPLUS is overriden in XCode project settings.
XCode (as of 15.2 and 15.4) doesn't support AddressSanitizer with custom CXX/CC variable.
The only working solution is to remove CC/CXX/LD/LDPLUSPLUS and use stock AppleClang.