Adam S
05/25/2024, 2:20 PM-fsanitize=address
to compilerOpts in my .def file, but I get an error:
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture arm64:
"___asan_init", referenced from:
_asan.module_ctor in demo-x.kexe.o
"___asan_register_image_globals", referenced from:
_asan.module_ctor in demo-x.kexe.o
"___asan_unregister_image_globals", referenced from:
_asan.module_dtor in demo-x.kexe.o
"___asan_version_mismatch_check_v8", referenced from:
_asan.module_ctor in demo-x.kexe.o
ld: symbol(s) not found for architecture arm64
Some answers on SO say to also add the flag to the linker opts, but that causes an error: ld: unknown options: -fsanitize=address