I'm working on an iOS project using XcodeGen and xcworkspace, with some third-party Objective-C dependencies included via Swift Package Manager (SPM). When I enable Address Sanitizer in Xcode, I get linker errors like:
Undefined symbol: ___asan_handle_no_return
Undefined symbol: ___asan_init
Undefined symbol: ___asan_memset
...
ld: symbol(s) not found for architecture arm64
How can I ensure Swift Packages inherit -fsanitize=address
when using XcodeGen? Is there a way to force Objective-C dependencies to compile with ASan enabled?